upgrade to tamagui v2 and guest pwa overhaul
This commit is contained in:
18
resources/js/guest-v2/components/StandaloneShell.tsx
Normal file
18
resources/js/guest-v2/components/StandaloneShell.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import { YStack } from '@tamagui/stacks';
|
||||
import AmbientBackground from './AmbientBackground';
|
||||
|
||||
type StandaloneShellProps = {
|
||||
children: React.ReactNode;
|
||||
compact?: boolean;
|
||||
};
|
||||
|
||||
export default function StandaloneShell({ children, compact = false }: StandaloneShellProps) {
|
||||
return (
|
||||
<AmbientBackground>
|
||||
<YStack minHeight="100vh" padding="$4" paddingTop={compact ? '$4' : '$6'} paddingBottom="$6" gap="$4">
|
||||
{children}
|
||||
</YStack>
|
||||
</AmbientBackground>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user