-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40ae671
commit 57b52da
Showing
29 changed files
with
1,035 additions
and
694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siafoundation/design-system': minor | ||
--- | ||
|
||
Refactor hooks used in server synced configuration features. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Button, Text } from '@siafoundation/design-system' | ||
import { Warning32 } from '@siafoundation/react-icons' | ||
import { useConfig } from '../../contexts/config' | ||
|
||
export function StateConnError() { | ||
const { revalidateAndResetForm } = useConfig() | ||
return ( | ||
<div className="flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer"> | ||
<Text> | ||
<Warning32 className="scale-[200%]" /> | ||
</Text> | ||
<div className="flex flex-col gap-3 items-center"> | ||
<Text color="subtle" className="text-center max-w-[500px]"> | ||
Error retrieving settings from daemon. Please check your connection | ||
and try again. | ||
</Text> | ||
<Button onClick={() => revalidateAndResetForm()}>Reload</Button> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.