From 8b8d56ae9ba115049383c13260efc1cdb69f9014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lobo?= <30907944+joaodiaslobo@users.noreply.github.com> Date: Fri, 10 Nov 2023 21:55:33 +0000 Subject: [PATCH] chore: rename vault to inventory (#569) --- components/Layout/Layout.tsx | 2 +- context/Auth/withAuth.js | 2 +- .../Attendee/{Vault/Vault.tsx => Inventory/Inventory.tsx} | 6 +++--- .../{Vault => Inventory}/components/Prizes/index.tsx | 0 .../{Vault => Inventory}/components/Redeemables/index.tsx | 0 .../{Vault => Inventory}/components/StoreEmpty/index.tsx | 0 .../{Vault => Inventory}/components/WheelEmpty/index.tsx | 0 layout/Attendee/{Vault => Inventory}/components/index.ts | 0 layout/Attendee/Inventory/index.ts | 1 + layout/Attendee/Vault/index.ts | 1 - pages/attendee/inventory.tsx | 1 + pages/attendee/vault.tsx | 1 - 12 files changed, 7 insertions(+), 7 deletions(-) rename layout/Attendee/{Vault/Vault.tsx => Inventory/Inventory.tsx} (96%) rename layout/Attendee/{Vault => Inventory}/components/Prizes/index.tsx (100%) rename layout/Attendee/{Vault => Inventory}/components/Redeemables/index.tsx (100%) rename layout/Attendee/{Vault => Inventory}/components/StoreEmpty/index.tsx (100%) rename layout/Attendee/{Vault => Inventory}/components/WheelEmpty/index.tsx (100%) rename layout/Attendee/{Vault => Inventory}/components/index.ts (100%) create mode 100644 layout/Attendee/Inventory/index.ts delete mode 100644 layout/Attendee/Vault/index.ts create mode 100644 pages/attendee/inventory.tsx delete mode 100644 pages/attendee/vault.tsx diff --git a/components/Layout/Layout.tsx b/components/Layout/Layout.tsx index 09b6a0ac..28c7999d 100644 --- a/components/Layout/Layout.tsx +++ b/components/Layout/Layout.tsx @@ -16,7 +16,7 @@ const roleNavigations = { "badgedex", "leaderboard", "store", - "vault", + "inventory", "identifier", ], admin: ["scanner", "visitors", "badges", "leaderboard", "users", "events"], diff --git a/context/Auth/withAuth.js b/context/Auth/withAuth.js index b6a8f1e7..dcf2f627 100644 --- a/context/Auth/withAuth.js +++ b/context/Auth/withAuth.js @@ -22,7 +22,7 @@ export function withAuth(WrappedComponent) { "/attendee/badgedex", "/attendee/leaderboard", "/attendee/store", - "/attendee/vault", + "/attendee/inventory", "/attendee/identifier", "/attendees/[uuid]", "/badge/[slug]", diff --git a/layout/Attendee/Vault/Vault.tsx b/layout/Attendee/Inventory/Inventory.tsx similarity index 96% rename from layout/Attendee/Vault/Vault.tsx rename to layout/Attendee/Inventory/Inventory.tsx index 7ff1d7bf..d3e5f564 100644 --- a/layout/Attendee/Vault/Vault.tsx +++ b/layout/Attendee/Inventory/Inventory.tsx @@ -9,7 +9,7 @@ import { Prizes, Redeemables, StoreEmpty, WheelEmpty } from "./components"; import Layout from "@components/Layout"; import Balance from "@components/Balance"; -function Vault() { +function Inventory() { const { user } = useAuth(); const [tab, updateTab] = useState(true); @@ -25,7 +25,7 @@ function Vault() { return (
@@ -79,4 +79,4 @@ function Vault() { ); } -export default withAuth(Vault); +export default withAuth(Inventory); diff --git a/layout/Attendee/Vault/components/Prizes/index.tsx b/layout/Attendee/Inventory/components/Prizes/index.tsx similarity index 100% rename from layout/Attendee/Vault/components/Prizes/index.tsx rename to layout/Attendee/Inventory/components/Prizes/index.tsx diff --git a/layout/Attendee/Vault/components/Redeemables/index.tsx b/layout/Attendee/Inventory/components/Redeemables/index.tsx similarity index 100% rename from layout/Attendee/Vault/components/Redeemables/index.tsx rename to layout/Attendee/Inventory/components/Redeemables/index.tsx diff --git a/layout/Attendee/Vault/components/StoreEmpty/index.tsx b/layout/Attendee/Inventory/components/StoreEmpty/index.tsx similarity index 100% rename from layout/Attendee/Vault/components/StoreEmpty/index.tsx rename to layout/Attendee/Inventory/components/StoreEmpty/index.tsx diff --git a/layout/Attendee/Vault/components/WheelEmpty/index.tsx b/layout/Attendee/Inventory/components/WheelEmpty/index.tsx similarity index 100% rename from layout/Attendee/Vault/components/WheelEmpty/index.tsx rename to layout/Attendee/Inventory/components/WheelEmpty/index.tsx diff --git a/layout/Attendee/Vault/components/index.ts b/layout/Attendee/Inventory/components/index.ts similarity index 100% rename from layout/Attendee/Vault/components/index.ts rename to layout/Attendee/Inventory/components/index.ts diff --git a/layout/Attendee/Inventory/index.ts b/layout/Attendee/Inventory/index.ts new file mode 100644 index 00000000..a7d8c361 --- /dev/null +++ b/layout/Attendee/Inventory/index.ts @@ -0,0 +1 @@ +export { default } from "./Inventory"; diff --git a/layout/Attendee/Vault/index.ts b/layout/Attendee/Vault/index.ts deleted file mode 100644 index 588dcf61..00000000 --- a/layout/Attendee/Vault/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./Vault"; diff --git a/pages/attendee/inventory.tsx b/pages/attendee/inventory.tsx new file mode 100644 index 00000000..4d9e792c --- /dev/null +++ b/pages/attendee/inventory.tsx @@ -0,0 +1 @@ +export { default } from "@layout/Attendee/Inventory"; diff --git a/pages/attendee/vault.tsx b/pages/attendee/vault.tsx deleted file mode 100644 index 7367784d..00000000 --- a/pages/attendee/vault.tsx +++ /dev/null @@ -1 +0,0 @@ -export { default } from "@layout/Attendee/Vault";