Merge branch 'develop' into 'devops-production'
Bug Fix See merge request empatnusabangsa/ppob/ppob-frontend!152
This commit is contained in:
commit
07ba160588
|
@ -47,14 +47,7 @@ export const DesktopLayout = observer(() => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
(async () => {
|
(async () => {
|
||||||
modalLoader.setLoading(true);
|
modalLoader.setLoading(true);
|
||||||
|
await Promise.allSettled([store.authentication.getProfile()]);
|
||||||
await Promise.allSettled([
|
|
||||||
store.authentication.getProfile(),
|
|
||||||
store.transaction.getDataHistoryTransaction(),
|
|
||||||
]);
|
|
||||||
await store.transaction.getDataHistoryTopUpProfile(
|
|
||||||
store.authentication.profileData?.id
|
|
||||||
);
|
|
||||||
modalLoader.setLoading(false);
|
modalLoader.setLoading(false);
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
@ -387,7 +380,6 @@ export const DesktopLayout = observer(() => {
|
||||||
>
|
>
|
||||||
{store.ui.mediaQuery.isMobile && (
|
{store.ui.mediaQuery.isMobile && (
|
||||||
<div
|
<div
|
||||||
className={store.ui.mediaQuery.isMobile ? "shadow" : null}
|
|
||||||
style={{
|
style={{
|
||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
|
@ -513,10 +505,12 @@ export const DesktopLayout = observer(() => {
|
||||||
visible={clicked}
|
visible={clicked}
|
||||||
onVisibleChange={() => setClicked(!clicked)}
|
onVisibleChange={() => setClicked(!clicked)}
|
||||||
>
|
>
|
||||||
{new Intl.NumberFormat("id-ID", {
|
{store.authentication.userData.role !== "Admin" &&
|
||||||
|
new Intl.NumberFormat("id-ID", {
|
||||||
style: "currency",
|
style: "currency",
|
||||||
currency: "IDR",
|
currency: "IDR",
|
||||||
}).format(store.authentication.profileData?.wallet || 0)}
|
}).format(store.authentication.profileData?.wallet || 0)}
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
size={"default"}
|
size={"default"}
|
||||||
type={store.ui.mediaQuery.isDesktop ? "" : "link"}
|
type={store.ui.mediaQuery.isDesktop ? "" : "link"}
|
||||||
|
@ -570,6 +564,7 @@ export const DesktopLayout = observer(() => {
|
||||||
width: "100%",
|
width: "100%",
|
||||||
}}
|
}}
|
||||||
></div>
|
></div>
|
||||||
|
{store.authentication.userData.role !== "Admin" && (
|
||||||
<Card
|
<Card
|
||||||
size="small"
|
size="small"
|
||||||
title={
|
title={
|
||||||
|
@ -592,6 +587,7 @@ export const DesktopLayout = observer(() => {
|
||||||
height: 31,
|
height: 31,
|
||||||
}}
|
}}
|
||||||
></Card>
|
></Card>
|
||||||
|
)}
|
||||||
<Popover
|
<Popover
|
||||||
className={store.ui.mediaQuery.isDesktop ? "shadow" : null}
|
className={store.ui.mediaQuery.isDesktop ? "shadow" : null}
|
||||||
autoAdjustOverflow={true}
|
autoAdjustOverflow={true}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user