Commit 1be034e5 by tdgiang

update code

parent 7d28f6b0
...@@ -61,4 +61,5 @@ p.MuiFormHelperText-root.MuiFormHelperText-contained.Mui-error.MuiFormHelperText ...@@ -61,4 +61,5 @@ p.MuiFormHelperText-root.MuiFormHelperText-contained.Mui-error.MuiFormHelperText
.MuiInputBase-input.Mui-disabled { .MuiInputBase-input.Mui-disabled {
color: black !important; color: black !important;
background-color: #f6f6f6 !important;
} }
...@@ -147,6 +147,14 @@ export const convertTimeApi = (date) => { ...@@ -147,6 +147,14 @@ export const convertTimeApi = (date) => {
const time = moment(temp).format('YYYY-MM-DD') const time = moment(temp).format('YYYY-MM-DD')
return time return time
} }
export function replaceItemInArray(array, index, newValue) {
if (index >= 0 && index < array.length) {
array[index] = newValue
} else {
console.log('Index out of bounds')
}
return array
}
export const convertDate = (date) => { export const convertDate = (date) => {
const time = moment(date).format('DD/MM/YYYY') const time = moment(date).format('DD/MM/YYYY')
......
...@@ -128,7 +128,7 @@ function CustomerView(props) { ...@@ -128,7 +128,7 @@ function CustomerView(props) {
</FormControl> </FormControl>
</Grid> </Grid>
</Grid> </Grid>
{checkRole(user, '/reconciliation/setting/create') ? ( {/* {checkRole(user, '/reconciliation/setting/create') ? (
<Link to="/reconciliation/setting/create"> <Link to="/reconciliation/setting/create">
<Button <Button
variant="contained" variant="contained"
...@@ -137,7 +137,7 @@ function CustomerView(props) { ...@@ -137,7 +137,7 @@ function CustomerView(props) {
<span className={'text-primary'}>Thêm mới</span> <span className={'text-primary'}>Thêm mới</span>
</Button> </Button>
</Link> </Link>
) : null} ) : null} */}
</Grid> </Grid>
<Table <Table
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment