Skip to content

Commit 50e3256

Browse files
authored
feat(twig): add back button to repository not found (#581)
1 parent 412b569 commit 50e3256

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

apps/twig/src/renderer/features/settings/components/FolderSettingsView.tsx

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useSetHeaderContent } from "@hooks/useSetHeaderContent";
2-
import { Warning } from "@phosphor-icons/react";
2+
import { ArrowLeft, Warning } from "@phosphor-icons/react";
33
import {
44
Box,
55
Button,
@@ -43,12 +43,23 @@ export function FolderSettingsView() {
4343
return (
4444
<Box height="100%" overflowY="auto">
4545
<Box p="6" style={{ maxWidth: "600px", margin: "0 auto" }}>
46-
<Callout.Root color="red">
47-
<Callout.Icon>
48-
<Warning />
49-
</Callout.Icon>
50-
<Callout.Text>Repository not found</Callout.Text>
51-
</Callout.Root>
46+
<Flex direction="column" gap="4">
47+
<Callout.Root color="red">
48+
<Callout.Icon>
49+
<Warning />
50+
</Callout.Icon>
51+
<Callout.Text>Repository not found</Callout.Text>
52+
</Callout.Root>
53+
<Button
54+
variant="soft"
55+
size="2"
56+
onClick={() => navigateToTaskInput()}
57+
style={{ alignSelf: "flex-start" }}
58+
>
59+
<ArrowLeft size={16} />
60+
Back to home
61+
</Button>
62+
</Flex>
5263
</Box>
5364
</Box>
5465
);
@@ -128,6 +139,16 @@ export function FolderSettingsView() {
128139
</Button>
129140
</Flex>
130141
</Card>
142+
143+
<Button
144+
variant="soft"
145+
size="2"
146+
onClick={() => navigateToTaskInput()}
147+
style={{ alignSelf: "flex-start" }}
148+
>
149+
<ArrowLeft size={16} />
150+
Back to home
151+
</Button>
131152
</Flex>
132153
</Box>
133154
</Box>

0 commit comments

Comments
 (0)