Skip to content

Commit

Permalink
add back buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Oct 24, 2024
1 parent 3fe33ab commit c9c2cac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion frontend/src/routes/student_topups_view.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container, Stack, Typography, Card, CardContent } from "@mui/material";
import { Container, Stack, Typography, Card, CardContent, Button } from "@mui/material";
import { useNavigate } from "react-router-dom";
import Header from "../components/header";
import { useContext, useEffect, useState } from "react";
Expand Down Expand Up @@ -45,6 +45,15 @@ export default function StudentTopupHistoryPage() {
alignItems: "center",
}}
>
<Button
variant="outlined"
color="white"
onClick={() => {
navigate("/student");
}}
>
Back
</Button>
<Typography variant="body1">Topup History</Typography>
{topupDetails.length > 0 ? (
topupDetails.map((topup, idx) => (
Expand Down
11 changes: 10 additions & 1 deletion frontend/src/routes/student_transactions_view.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container, Stack, Typography, Card, CardContent } from "@mui/material";
import { Container, Stack, Typography, Card, CardContent, Button } from "@mui/material";
import { useNavigate } from "react-router-dom";
import Header from "../components/header";
import { useContext, useEffect, useState } from "react";
Expand Down Expand Up @@ -45,6 +45,15 @@ export default function StudentTransactionHistoryPage() {
alignItems: "center",
}}
>
<Button
variant="outlined"
color="white"
onClick={() => {
navigate("/student");
}}
>
Back
</Button>
<Typography variant="body1">Transaction History</Typography>
{transactionDetails.length > 0 ? (
transactionDetails.map((transaction, idx) => (
Expand Down

0 comments on commit c9c2cac

Please sign in to comment.