feat: button flex
This commit is contained in:
parent
d331f68280
commit
bcfb7aa624
@ -44,15 +44,15 @@ function TypeDifference(prop:{
|
|||||||
}}>Commit all</Button>
|
}}>Commit all</Button>
|
||||||
</Box>
|
</Box>
|
||||||
{x.value.map(y=>(
|
{x.value.map(y=>(
|
||||||
<Box /*className={classes.commitable}*/ key={y.path}>
|
<Box sx={{display:"flex"}} key={y.path}>
|
||||||
<Button variant="contained" onClick={()=>{
|
<Button variant="contained" onClick={()=>{
|
||||||
set_disable(true);
|
set_disable(true);
|
||||||
prop.onCommit(y);
|
prop.onCommit(y);
|
||||||
set_disable(false);
|
set_disable(false);
|
||||||
}}
|
}}
|
||||||
disabled={button_disable}>Commit</Button>
|
disabled={button_disable}>Commit</Button>
|
||||||
<Typography variant='h5'>{y.path}</Typography>
|
<Typography variant='h5'>{y.path}</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
))}
|
))}
|
||||||
</Paper>);
|
</Paper>);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user