website refactor

This commit is contained in:
2026-01-19 18:34:01 +01:00
parent 61b5cf3b64
commit 41e21e6595
24 changed files with 643 additions and 717 deletions

View File

@@ -1,12 +1,10 @@
'use client';
import {
SharedBox,
SharedStack,
SharedText,
SharedIcon,
SharedProgressLine
} from '@/components/shared/UIComponents';
import { Box } from '@/ui/Box';
import { Stack } from '@/ui/Stack';
import { Text } from '@/ui/Text';
import { Icon } from '@/ui/Icon';
import { ProgressLine } from '@/components/shared/ProgressLine';
import { ShieldAlert } from 'lucide-react';
import { useRouter } from 'next/navigation';
import { useState } from 'react';
@@ -53,19 +51,19 @@ export function SponsorshipRequestsClient({ viewData, onAccept, onReject }: Spon
return (
<>
<SharedProgressLine isLoading={!!isProcessing} />
<ProgressLine isLoading={!!isProcessing} />
{error && (
<SharedBox position="fixed" top={4} right={4} zIndex={50} maxWidth="md">
<SharedBox bg="bg-error-red/10" p={4} rounded="md" border borderColor="border-error-red/20">
<SharedStack direction="row" align="center" gap={3}>
<SharedIcon icon={ShieldAlert} size={5} color="text-error-red" />
<SharedBox>
<SharedText weight="bold" color="text-error-red">Action Failed</SharedText>
<SharedText size="sm" color="text-error-red/80">{error}</SharedText>
</SharedBox>
</SharedStack>
</SharedBox>
</SharedBox>
<Box position="fixed" top={4} right={4} zIndex={50} maxWidth="md">
<Box bg="bg-error-red/10" p={4} rounded="md" border borderColor="border-error-red/20">
<Stack direction="row" align="center" gap={3}>
<Icon icon={ShieldAlert} size={5} color="text-error-red" />
<Box>
<Text weight="bold" color="text-error-red">Action Failed</Text>
<Text size="sm" color="text-error-red/80">{error}</Text>
</Box>
</Stack>
</Box>
</Box>
)}
<SponsorshipRequestsTemplate
viewData={viewData}