Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename vault to inventory #569

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
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.

Loading