Skip to content

Commit

Permalink
chore: rename vault to inventory (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodiaslobo authored Nov 10, 2023
1 parent 41dc6ab commit 8b8d56a
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const roleNavigations = {
"badgedex",
"leaderboard",
"store",
"vault",
"inventory",
"identifier",
],
admin: ["scanner", "visitors", "badges", "leaderboard", "users", "events"],
Expand Down
2 changes: 1 addition & 1 deletion context/Auth/withAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function withAuth(WrappedComponent) {
"/attendee/badgedex",
"/attendee/leaderboard",
"/attendee/store",
"/attendee/vault",
"/attendee/inventory",
"/attendee/identifier",
"/attendees/[uuid]",
"/badge/[slug]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -25,7 +25,7 @@ function Vault() {

return (
<Layout
title="Vault"
title="Inventory"
description="Check the prizes that you have accumulated throughout the week"
>
<div className="my-5">
Expand Down Expand Up @@ -79,4 +79,4 @@ function Vault() {
);
}

export default withAuth(Vault);
export default withAuth(Inventory);
File renamed without changes.
1 change: 1 addition & 0 deletions layout/Attendee/Inventory/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./Inventory";
1 change: 0 additions & 1 deletion layout/Attendee/Vault/index.ts

This file was deleted.

1 change: 1 addition & 0 deletions pages/attendee/inventory.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "@layout/Attendee/Inventory";
1 change: 0 additions & 1 deletion pages/attendee/vault.tsx

This file was deleted.

0 comments on commit 8b8d56a

Please sign in to comment.