Files
web2.0-frontend/src/components/SignupQuestionsWidget/Question.tsx
T
Aarni Halinen 03531b35ed Style fixes
2019-07-17 19:03:58 +03:00

22 lines
410 B
TypeScript

import React, { Component } from "react";
export interface QuestionProps {
children: any;
onRemove: () => any;
}
class Question extends Component<QuestionProps> {
render() {
const { children, onRemove } = this.props;
return (
<div>
<button type="button" className="remove" onClick={onRemove}>Delete</button>
{children}
</div>
);
}
}
export default Question;