Fix UI Admin PPID

Profile PPID clear
This commit is contained in:
2025-06-10 00:54:29 +08:00
parent 41ae92774d
commit 6d312b7a28
24 changed files with 904 additions and 621 deletions

View File

@@ -9,10 +9,10 @@ import BackButton from '../../desa/layanan/_com/BackButto';
function Page() {
const allList = useProxy(stateProfilePPID)
useShallowEffect(() => {
allList.findById.load("1") // Assuming "1" is your default ID, adjust as needed
allList.profile.load("1") // Assuming "1" is your default ID, adjust as needed
}, [])
if (!allList.findById.data) return <Stack bg={colors.Bg} py={"xl"} gap={"22"}>
if (!allList.profile.data) return <Stack bg={colors.Bg} py={"xl"} gap={"22"}>
<Box px={{ base: 'md', md: 100 }}>
<Skeleton style={{backgroundColor: colors.Bg}} h={40} />
</Box>
@@ -28,9 +28,9 @@ function Page() {
</Box>
</Stack>
const dataArray = Array.isArray(allList.findById.data)
? allList.findById.data
: [allList.findById.data];
const dataArray = Array.isArray(allList.profile.data)
? allList.profile.data
: [allList.profile.data];
return (
<Stack pos={"relative"} bg={colors.Bg} py={"xl"} gap={"22"}>