File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export function RefreshIcon ( { className } : { className ?: string } ) {
2+ return (
3+ < svg
4+ className = { className }
5+ width = "24"
6+ height = "24"
7+ viewBox = "0 0 24 24"
8+ fill = "none"
9+ xmlns = "http://www.w3.org/2000/svg"
10+ aria-hidden = "true"
11+ >
12+ < path
13+ d = "M5 8C6.38324 5.60879 9.03887 4 12 4C16.4183 4 20 7.58172 20 12"
14+ stroke = "currentColor"
15+ strokeWidth = "2"
16+ strokeLinecap = "round"
17+ strokeLinejoin = "round"
18+ />
19+ < path
20+ d = "M5 4V8H9"
21+ stroke = "currentColor"
22+ strokeWidth = "2"
23+ strokeLinecap = "round"
24+ strokeLinejoin = "round"
25+ />
26+ < path
27+ d = "M19.0117 20V16H15.0117"
28+ stroke = "currentColor"
29+ strokeWidth = "2"
30+ strokeLinecap = "round"
31+ strokeLinejoin = "round"
32+ />
33+ < path
34+ d = "M4 12C4 16.4183 7.58172 20 12 20C14.9611 20 17.6168 18.3912 19 16"
35+ stroke = "currentColor"
36+ strokeWidth = "2"
37+ strokeLinecap = "round"
38+ strokeLinejoin = "round"
39+ />
40+ </ svg >
41+ ) ;
42+ }
Original file line number Diff line number Diff line change 1- import { ArrowPathIcon } from "@heroicons/react/20/solid " ;
1+ import { RefreshIcon } from "~/assets/icons/RefreshIcon " ;
22import { useRevalidator } from "@remix-run/react" ;
33import { useLoaderDisconnected } from "~/hooks/useLoaderDisconnected" ;
44import { Button } from "~/components/primitives/Buttons" ;
@@ -12,13 +12,15 @@ export function DisconnectedBanner() {
1212 return (
1313 < div
1414 role = "status"
15- className = "fixed bottom-4 left-1/2 z-50 flex -translate-x-1/2 items-center gap-2 rounded border border-warning/30 bg-background-bright px-4 py-2 text-sm text-text-bright shadow-lg"
15+ className = "fixed bottom-4 left-1/2 z-50 flex -translate-x-1/2 items-center gap-2 rounded border border-warning/30 bg-background-bright p-2 pl-4 text-sm text-text-bright shadow-lg"
1616 >
1717 < span > Connection lost. Your data may be out of date.</ span >
1818 < Button
1919 type = "button"
2020 variant = "minimal/small"
21- LeadingIcon = { ArrowPathIcon }
21+ className = "size-6 p-0"
22+ LeadingIcon = { RefreshIcon }
23+ leadingIconClassName = "mx-0 size-4"
2224 aria-label = "Refresh"
2325 tooltip = "Refresh"
2426 onClick = { ( ) => revalidator . revalidate ( ) }
You can’t perform that action at this time.
0 commit comments