Skip to content

Commit

Permalink
deconflict naming
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Oct 24, 2024
1 parent d6caa81 commit 3fe33ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import BoothMainPage from "./routes/booth_main_view";
import BoothConfirmPaymentPage from "./routes/booth_confirm_payment_view";
import AdminPage from "./routes/admin_view";
import UserProvider from "./UserProvider";
import StudentTransactionPage from "./routes/student_transactions_view";
import StudentTransactionHistoryPage from "./routes/student_transactions_view";
import StudentTopupHistoryPage from "./routes/student_topups_view";

const router = createBrowserRouter([
{
Expand Down Expand Up @@ -51,11 +52,11 @@ const router = createBrowserRouter([
},
{
path: "/student/transactions",
element: <StudentTransactionPage />,
element: <StudentTransactionHistoryPage />,
},
{
path: "/student/topups",
element: <StudentTopupPage />,
element: <StudentTopupHistoryPage />,
},
{
path: "/booth",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/student_topups_view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { UserContext } from "../UserProvider";
import { getTopupHistory } from "../api";
import { TopupHistoryDetails } from "../types/topup";

export default function StudentTopupPage() {
export default function StudentTopupHistoryPage() {
const navigate = useNavigate();
const { user } = useContext(UserContext);
const [topupDetails, setTopupDetails] = useState<
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/student_transactions_view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { UserContext } from "../UserProvider";
import { TransactionHistoryDetails } from "../types/transaction";
import { getTransactionHistory } from "../api";

export default function StudentTransactionPage() {
export default function StudentTransactionHistoryPage() {
const navigate = useNavigate();
const { user } = useContext(UserContext);
const [transactionDetails, setTransactionDetails] = useState<
Expand Down

0 comments on commit 3fe33ab

Please sign in to comment.