Commit a22c9d37 by Syed Abdul Rahman

initial commit

parent 54451966
...@@ -17,7 +17,7 @@ const Button = (props) => { ...@@ -17,7 +17,7 @@ const Button = (props) => {
export default Button; export default Button;
Button.prototype = { Button.PropTypes = {
title: PropTypes.string.isRequired, title: PropTypes.string.isRequired,
onConfirm: PropTypes.func.isRequired, onConfirm: PropTypes.func.isRequired,
......
import PropTypes from 'prop-types';
const Input = (props) => {
const { onValueChange } = props;
return (
<input onChange={onValueChange} />
)
}
export default Input;
Input.PropTypes = {
onValueChange: PropTypes.func.isRequired
}
\ No newline at end of file
import styles from './styles.module.css';
const Legend = (props) => {
const { title, type } = props;
return (
<div>Legend</div>
)
}
export default Legend;
\ No newline at end of file
...@@ -43,7 +43,7 @@ const BookingWrapper = (props) => { ...@@ -43,7 +43,7 @@ const BookingWrapper = (props) => {
export default BookingWrapper; export default BookingWrapper;
BookingWrapper.prototype = { BookingWrapper.PropTypes = {
seatData: PropTypes.arrayOf( seatData: PropTypes.arrayOf(
PropTypes.shape({ PropTypes.shape({
id: PropTypes.string.isRequired, id: PropTypes.string.isRequired,
......
...@@ -10,7 +10,7 @@ const Seat = (props) => { ...@@ -10,7 +10,7 @@ const Seat = (props) => {
) )
} }
Seat.prototype = { Seat.PropTypes = {
onSeatClick: PropTypes.func.isRequired, onSeatClick: PropTypes.func.isRequired,
status: PropTypes.oneOf(['available', 'reserved', 'selected']) status: PropTypes.oneOf(['available', 'reserved', 'selected'])
} }
......
...@@ -8,7 +8,7 @@ const Header = (props) => { ...@@ -8,7 +8,7 @@ const Header = (props) => {
) )
} }
Header.prototype = { Header.PropTypes = {
title: PropTypes.string.isRequired title: PropTypes.string.isRequired
} }
......
import styles from './styles.module.css';
import PropTypes from 'prop-types';
const LegendWrapper = (props) => {
const {
legendData
} = props;
return (
<div>LegendWrapper</div>
)
}
export default LegendWrapper;
LegendWrapper.PropTypes = {
legendData: PropTypes.arrayOf(
PropTypes.shape({
title: PropTypes.string,
status: PropTypes.oneOf(['available', 'reserved', 'selected']).isRequired,
})
)
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment