feat: 화면 설정 반영
parent
d4050acdab
commit
bbb9822770
@ -1,25 +0,0 @@
|
||||
// material-ui
|
||||
import { FormControl, FormControlLabel, Switch } from '@mui/material';
|
||||
|
||||
// project imports
|
||||
import useConfig from 'hooks/useConfig';
|
||||
import SubCard from 'ui-component/cards/SubCard';
|
||||
|
||||
const BoxContainer = () => {
|
||||
const { container, onChangeContainer } = useConfig();
|
||||
|
||||
return (
|
||||
<SubCard title="Box Container">
|
||||
<FormControl component="fieldset" sx={{ mt: 2 }}>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch checked={container} onChange={() => onChangeContainer()} inputProps={{ 'aria-label': 'controlled-direction' }} />
|
||||
}
|
||||
label="Container"
|
||||
/>
|
||||
</FormControl>
|
||||
</SubCard>
|
||||
);
|
||||
};
|
||||
|
||||
export default BoxContainer;
|
@ -1,29 +0,0 @@
|
||||
// material-ui
|
||||
import { Grid, Stack, Switch, TextField } from '@mui/material';
|
||||
|
||||
// project imports
|
||||
import useConfig from 'hooks/useConfig';
|
||||
import SubCard from 'ui-component/cards/SubCard';
|
||||
|
||||
const InputFilled = () => {
|
||||
const { outlinedFilled, onChangeOutlinedField } = useConfig();
|
||||
|
||||
return (
|
||||
<SubCard title="Input Outlined With Filled">
|
||||
<Grid item xs={12} container spacing={2} alignItems="center">
|
||||
<Grid item>
|
||||
<Stack spacing={2}>
|
||||
<Switch
|
||||
checked={outlinedFilled}
|
||||
onChange={(event) => onChangeOutlinedField(event.target.checked)}
|
||||
inputProps={{ 'aria-label': 'controlled' }}
|
||||
/>
|
||||
<TextField fullWidth id="outlined-basic" label={outlinedFilled ? 'With Background' : 'Without Background'} />
|
||||
</Stack>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</SubCard>
|
||||
);
|
||||
};
|
||||
|
||||
export default InputFilled;
|
Loading…
Reference in New Issue