Skip to content

Commit 90ae0b5

Browse files
committed
back button
1 parent e55ac23 commit 90ae0b5

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

src/renderer/components/Computer.tsx

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
Box,
77
Card,
88
CardContent,
9+
IconButton,
910
FormControl,
1011
Grid,
1112
Input,
@@ -27,6 +28,8 @@ import {
2728
SearchIcon,
2829
ZapIcon,
2930
} from 'lucide-react';
31+
import { ArrowLeftIcon } from 'lucide-react';
32+
import { useNavigate } from 'react-router-dom';
3033

3134
import {
3235
SiNvidia,
@@ -77,6 +80,8 @@ export default function Computer() {
7780
? pythonLibraries
7881
: [];
7982

83+
const navigate = useNavigate();
84+
8085
return (
8186
<Sheet
8287
sx={{
@@ -116,9 +121,26 @@ export default function Computer() {
116121
}}
117122
>
118123
{/* {JSON.stringify(server)} */}
119-
<Typography level="h2" paddingBottom={1}>
120-
Server Information
121-
</Typography>
124+
<Box
125+
sx={{
126+
display: 'flex',
127+
alignItems: 'center',
128+
gap: 1,
129+
pb: 1,
130+
}}
131+
>
132+
<IconButton
133+
size="sm"
134+
variant="plain"
135+
color="neutral"
136+
onClick={() => navigate(-1)}
137+
aria-label="Back"
138+
sx={{ borderRadius: '999px' }}
139+
>
140+
<ArrowLeftIcon size={18} />
141+
</IconButton>
142+
<Typography level="h2">Server Information</Typography>
143+
</Box>
122144
<Sheet
123145
className="OrderTableContainer"
124146
sx={{

0 commit comments

Comments
 (0)