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";