Commit a9756283 authored by ThinhNC's avatar ThinhNC

refactor(home): move Debts & Loans module below Saving Goals

parent 55b4b932
...@@ -214,11 +214,6 @@ function HomePage() { ...@@ -214,11 +214,6 @@ function HomePage() {
{t("home.wallets")} {t("home.wallets")}
</Button> </Button>
</PermissionGate> </PermissionGate>
<PermissionGate permission={PERMISSIONS.DEBT_READ}>
<Button variant="secondary" fullWidth onClick={() => navigate("/debts")} className="gap-2">
{t("home.debts")}
</Button>
</PermissionGate>
<PermissionGate permission={PERMISSIONS.TRANSACTION_READ}> <PermissionGate permission={PERMISSIONS.TRANSACTION_READ}>
<Button variant="secondary" fullWidth onClick={() => navigate("/transactions")}> <Button variant="secondary" fullWidth onClick={() => navigate("/transactions")}>
{t("home.transactions")} {t("home.transactions")}
...@@ -276,6 +271,11 @@ function HomePage() { ...@@ -276,6 +271,11 @@ function HomePage() {
{t("home.savingGoals")} {t("home.savingGoals")}
</Button> </Button>
</PermissionGate> </PermissionGate>
<PermissionGate permission={PERMISSIONS.DEBT_READ}>
<Button variant="secondary" fullWidth onClick={() => navigate("/debts")} className="gap-2">
{t("home.debts")}
</Button>
</PermissionGate>
<PermissionGate permission={PERMISSIONS.CATEGORY_READ}> <PermissionGate permission={PERMISSIONS.CATEGORY_READ}>
<Button variant="secondary" fullWidth onClick={() => navigate("/categories")}> <Button variant="secondary" fullWidth onClick={() => navigate("/categories")}>
{t("home.categories")} {t("home.categories")}
......
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