(fix): actually migrate all the imports from tensamin/ui to methanium/ui
Some checks failed
/ build-web (push) Failing after 4m33s
/ build-desktop (linux) (push) Failing after 4m36s
/ build-mobile (push) Failing after 7m7s
/ release (push) Has been skipped

(feat): update legal loading screen
This commit is contained in:
Alois 2026-07-25 18:12:54 +02:00
commit 25c7ee7c26
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
54 changed files with 71 additions and 87 deletions

View file

@ -1,12 +1,10 @@
import { useCallback, useEffect, useState, type ReactNode } from "react";
import {
CreateScreen,
ErrorScreen,
Link,
LoadingScreen,
OnboardingFlow,
Spinner,
type OnboardingStep,
} from "@tensamin/ui";
} from "@methanium/ui";
import { useStorage } from "@tensamin/storage/context";
import { legalDocsSchema } from "@tensamin/shared/features/legal/schema";
import { log } from "@tensamin/shared/log";
@ -19,7 +17,7 @@ export {
useOnboardingStep,
type OnboardingStep,
type OnboardingStepControls,
} from "@tensamin/ui";
} from "@methanium/ui";
type LegalDocs = z.infer<typeof legalDocsSchema>;
@ -137,20 +135,7 @@ export default function OnboardingGate({ children }: { children: ReactNode }) {
if (!state) {
if (!showLoading) return null;
return (
<CreateScreen>
<div className="flex flex-col items-center gap-3">
<Spinner className="size-8" />
<p className="text-sm text-muted-foreground">
Fetching legal documents...
</p>
<Link
label="status.methanium.net"
link="https://status.methanium.net"
/>
</div>
</CreateScreen>
);
return <LoadingScreen noProgress title="Fetching legal documents..." />;
}
const steps: OnboardingStep[] = [];