website refactor

This commit is contained in:
2026-01-18 23:24:30 +01:00
parent aeaa43f4d3
commit 182056a57b
487 changed files with 1783 additions and 2170 deletions

View File

@@ -1,5 +1,5 @@
import { Button } from '@/ui/Button';
import { Stack } from '@/ui/primitives/Stack';
import { ButtonGroup } from '@/ui/ButtonGroup';
interface OnboardingCTAProps {
onBack?: () => void;
@@ -23,19 +23,16 @@ export function OnboardingCTA({
type = 'button',
}: OnboardingCTAProps) {
return (
<Stack direction="row" justify="between" mt={8} gap={4}>
{onBack ? (
<ButtonGroup alignment={onBack ? 'between' : 'end'} marginTop={8}>
{onBack && (
<Button
type="button"
variant="secondary"
onClick={onBack}
disabled={isLoading}
className="px-8"
>
{backLabel}
</Button>
) : (
<div />
)}
<Button
@@ -43,17 +40,10 @@ export function OnboardingCTA({
variant="primary"
onClick={onNext}
disabled={isLoading || !canNext}
className="px-8 min-w-[140px]"
isLoading={isLoading}
>
{isLoading ? (
<Stack direction="row" gap={2} align="center">
<span className="animate-spin"></span>
<span>Processing...</span>
</Stack>
) : (
isLastStep ? 'Complete Setup' : nextLabel
)}
{isLastStep ? 'Complete Setup' : nextLabel}
</Button>
</Stack>
</ButtonGroup>
);
}