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() {
{t("home.wallets")}
</Button>
</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}>
<Button variant="secondary" fullWidth onClick={() => navigate("/transactions")}>
{t("home.transactions")}
......@@ -276,6 +271,11 @@ function HomePage() {
{t("home.savingGoals")}
</Button>
</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}>
<Button variant="secondary" fullWidth onClick={() => navigate("/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