buttons should have typograaphy as child

This commit is contained in:
Olivier Gagnon 2021-09-25 15:41:00 -04:00
parent 86da356478
commit 6d179be018
3 changed files with 5 additions and 13 deletions

@ -70,13 +70,11 @@ export function AugmentationsRoot(props: IProps): React.ReactElement {
</Typography> </Typography>
<Box mx={2}> <Box mx={2}>
<Tooltip title={"'I never asked for this'"}> <Tooltip title={"'I never asked for this'"}>
<Button onClick={props.installAugmentationsFn}> <Button onClick={props.installAugmentationsFn}>Install Augmentations</Button>
<Typography>Install Augmentations</Typography>
</Button>
</Tooltip> </Tooltip>
<Tooltip title={"It's always a good idea to backup/export your save!"}> <Tooltip title={"It's always a good idea to backup/export your save!"}>
<Button sx={{ mx: 2 }} onClick={doExport}> <Button sx={{ mx: 2 }} onClick={doExport} color="error">
<Typography color="error">Backup Save {exportBonusStr()}</Typography> Backup Save {exportBonusStr()}
</Button> </Button>
</Tooltip> </Tooltip>
<PurchasedAugmentations /> <PurchasedAugmentations />

@ -41,9 +41,5 @@ export function PurchaseButton(props: IProps): React.ReactElement {
); );
} }
return ( return <Button onClick={props.onClick}>{text}</Button>;
<Button onClick={props.onClick}>
<Typography>{text}</Typography>
</Button>
);
} }

@ -154,9 +154,7 @@ export function WorkerScriptAccordion(props: IProps): React.ReactElement {
</TableBody> </TableBody>
</Table> </Table>
<Button onClick={logClickHandler}> <Button onClick={logClickHandler}>LOG</Button>
<Typography>LOG</Typography>
</Button>
<IconButton onClick={killScriptClickHandler}> <IconButton onClick={killScriptClickHandler}>
<DeleteIcon color="error" /> <DeleteIcon color="error" />
</IconButton> </IconButton>