update : profile

Deskripsi:
- menghapus info
- mengganti variable global menjadi usestate
- mengganti layoutnavbar new

No Issues
This commit is contained in:
amel
2024-07-08 15:23:00 +08:00
parent e5bdfaeaa7
commit 82211071e1
6 changed files with 24 additions and 32 deletions

View File

@@ -11,7 +11,7 @@ function LayoutIconBack({ back }: { back?: string }) {
return (
<Box>
<ActionIcon variant="light" onClick={() => {
if (!_.isUndefined(back) && !_.isNull(back)) {
if (!_.isUndefined(back) && !_.isNull(back) && !_.isEmpty(back)) {
return router.push(back)
} else {
return router.back()