feat: some improvements in ui for caps and tags

This commit is contained in:
dec0dOS 2021-12-14 01:38:58 +03:00
parent 3827fe81a1
commit 2f27c112ea
2 changed files with 8 additions and 4 deletions

View file

@ -60,7 +60,7 @@ function MemberSettings({ member, network, handleChange }) {
</Grid> </Grid>
<Grid container spacing={2}> <Grid container spacing={2}>
<Grid item xs={12}> <Grid item xs={12}>
<Typography variant="h5">Capabilities</Typography> <Typography variant="h6">Capabilities</Typography>
</Grid> </Grid>
<Grid item xs={12}> <Grid item xs={12}>
<Paper style={{ padding: 20 }}> <Paper style={{ padding: 20 }}>
@ -96,7 +96,7 @@ function MemberSettings({ member, network, handleChange }) {
</Grid> </Grid>
<Grid container spacing={2}> <Grid container spacing={2}>
<Grid item xs={12}> <Grid item xs={12}>
<Typography variant="h5">Tags</Typography> <Typography variant="h6">Tags</Typography>
</Grid> </Grid>
{Object.entries(network["tagsByName"] || []).length === 0 ? ( {Object.entries(network["tagsByName"] || []).length === 0 ? (
<Grid item xs={12}> <Grid item xs={12}>

View file

@ -93,7 +93,7 @@ function Tag({ member, tagName, tagDetail, handleChange }) {
<Grid container spacing={2}> <Grid container spacing={2}>
<Grid item xs={12}> <Grid item xs={12}>
<Typography <Typography
variant="h5" variant="h6"
color={tagValue === "" ? "error" : "primary"} color={tagValue === "" ? "error" : "primary"}
> >
{tagName} {tagName}
@ -139,7 +139,11 @@ function Tag({ member, tagName, tagDetail, handleChange }) {
</Select> </Select>
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>
<Input value={tagValue} onChange={handleInputChange} /> <Input
value={tagValue}
onChange={handleInputChange}
placeholder="Tag Enum ID"
/>
</Grid> </Grid>
</Grid> </Grid>
<Grid item xs={12}> <Grid item xs={12}>