Skip to content

Instantly share code, notes, and snippets.

View thinhbg2812's full-sized avatar

Thomas Bui thinhbg2812

View GitHub Profile
const SharePriceCalculator = (props: any): JSX.Element => {
const classes = useStyles()
const sharePriceInput = Math.floor(props.original_price / props.share_number)
return <TextInput label="Giá 1 phần" initialValue={sharePriceInput} value={sharePriceInput} source="share_price" className={classes.width256} />
}
const PropertyEdit = (props: any) => {
const classes = useStyles()
return (
<Edit {...props}>