feat: button flex

This commit is contained in:
monoid 2022-07-06 16:42:49 +09:00
parent d331f68280
commit bcfb7aa624

View File

@ -44,15 +44,15 @@ function TypeDifference(prop:{
}}>Commit all</Button>
</Box>
{x.value.map(y=>(
<Box /*className={classes.commitable}*/ key={y.path}>
<Button variant="contained" onClick={()=>{
set_disable(true);
prop.onCommit(y);
set_disable(false);
}}
disabled={button_disable}>Commit</Button>
<Typography variant='h5'>{y.path}</Typography>
</Box>
<Box sx={{display:"flex"}} key={y.path}>
<Button variant="contained" onClick={()=>{
set_disable(true);
prop.onCommit(y);
set_disable(false);
}}
disabled={button_disable}>Commit</Button>
<Typography variant='h5'>{y.path}</Typography>
</Box>
))}
</Paper>);
}