()
| 6 | import { m } from "@localizations/messages.js"; |
| 7 | |
| 8 | export default function UpdateInProgressStatusCard() { |
| 9 | const { navigateTo } = useDeviceUiNavigation(); |
| 10 | |
| 11 | return ( |
| 12 | <div className="w-full opacity-100 transition-all duration-300 ease-in-out select-none"> |
| 13 | <GridCard cardClassName="shadow-xl!"> |
| 14 | <div className="flex items-center justify-between gap-x-3 px-2.5 py-2.5 text-black dark:text-white"> |
| 15 | <div className="flex items-center gap-x-3"> |
| 16 | <LoadingSpinner className={cx("h-5 w-5", "shrink-0 text-blue-700")} /> |
| 17 | <div className="space-y-1"> |
| 18 | <div className="text-sm leading-none font-semibold text-ellipsis transition"> |
| 19 | {m.update_in_progress()} |
| 20 | </div> |
| 21 | <div className="text-sm leading-none"> |
| 22 | <div className="flex items-center gap-x-1"> |
| 23 | <span className={cx("transition")}>{m.updating_leave_device_on()}</span> |
| 24 | </div> |
| 25 | </div> |
| 26 | </div> |
| 27 | </div> |
| 28 | <Button |
| 29 | size="SM" |
| 30 | className="pointer-events-auto" |
| 31 | theme="light" |
| 32 | text={m.view_details()} |
| 33 | onClick={() => navigateTo("/settings/general/update")} |
| 34 | /> |
| 35 | </div> |
| 36 | </GridCard> |
| 37 | </div> |
| 38 | ); |
| 39 | } |
nothing calls this directly
no test coverage detected