mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2025-05-14 10:31:07 +08:00
Added individual product views and fixed login session checker
This commit is contained in:
parent
f411ea00a4
commit
48ed8f45c6
8 changed files with 83 additions and 26 deletions
24
src/Routes/Product/Product.tsx
Normal file
24
src/Routes/Product/Product.tsx
Normal file
|
@ -0,0 +1,24 @@
|
|||
import * as React from "react";
|
||||
import styles from "../../styles";
|
||||
import { Button } from "@mui/material";
|
||||
import { useParams } from "react-router-dom";
|
||||
|
||||
export default function Product() {
|
||||
let { id } = useParams();
|
||||
return (
|
||||
<div style={{ margin: 32, height: "100%" }}>
|
||||
<h1 style={{ ...styles.text_white, ...styles.text_XL }}>
|
||||
Individual Product View for id {id}
|
||||
</h1>
|
||||
<Button
|
||||
style={{
|
||||
...styles.button_baseline,
|
||||
...{ backgroundColor: "#80b38b" },
|
||||
}}
|
||||
variant="contained"
|
||||
>
|
||||
Login
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue