Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 8b8d56a

Browse files
authored
chore: rename vault to inventory (#569)
1 parent 41dc6ab commit 8b8d56a

File tree

12 files changed

+7
-7
lines changed

12 files changed

+7
-7
lines changed

components/Layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const roleNavigations = {
1616
"badgedex",
1717
"leaderboard",
1818
"store",
19-
"vault",
19+
"inventory",
2020
"identifier",
2121
],
2222
admin: ["scanner", "visitors", "badges", "leaderboard", "users", "events"],

context/Auth/withAuth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function withAuth(WrappedComponent) {
2222
"/attendee/badgedex",
2323
"/attendee/leaderboard",
2424
"/attendee/store",
25-
"/attendee/vault",
25+
"/attendee/inventory",
2626
"/attendee/identifier",
2727
"/attendees/[uuid]",
2828
"/badge/[slug]",

layout/Attendee/Vault/Vault.tsx renamed to layout/Attendee/Inventory/Inventory.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Prizes, Redeemables, StoreEmpty, WheelEmpty } from "./components";
99
import Layout from "@components/Layout";
1010
import Balance from "@components/Balance";
1111

12-
function Vault() {
12+
function Inventory() {
1313
const { user } = useAuth();
1414

1515
const [tab, updateTab] = useState(true);
@@ -25,7 +25,7 @@ function Vault() {
2525

2626
return (
2727
<Layout
28-
title="Vault"
28+
title="Inventory"
2929
description="Check the prizes that you have accumulated throughout the week"
3030
>
3131
<div className="my-5">
@@ -79,4 +79,4 @@ function Vault() {
7979
);
8080
}
8181

82-
export default withAuth(Vault);
82+
export default withAuth(Inventory);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

layout/Attendee/Inventory/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from "./Inventory";

layout/Attendee/Vault/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)