Official URL migration preserves sessions, shortcuts prefs, and last clock-in client; auth screens match web with legal links; time clock and invoice editor/send flows are updated for the new domain and UI patterns. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
694 B
TypeScript
29 lines
694 B
TypeScript
import type { ReactNode } from "react";
|
|
import { StyleSheet, View, type StyleProp, type ViewStyle } from "react-native";
|
|
|
|
import { GlassSurface } from "@/components/GlassSurface";
|
|
import { spacing } from "@/constants/theme";
|
|
|
|
const AUTH_CARD_RADIUS = 24;
|
|
|
|
type AuthCardProps = {
|
|
children: ReactNode;
|
|
style?: StyleProp<ViewStyle>;
|
|
};
|
|
|
|
export function AuthCard({ children, style }: AuthCardProps) {
|
|
return (
|
|
<GlassSurface radius={AUTH_CARD_RADIUS} style={style}>
|
|
<View style={styles.inner}>{children}</View>
|
|
</GlassSurface>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
inner: {
|
|
paddingHorizontal: spacing.lg,
|
|
paddingVertical: spacing.lg,
|
|
gap: spacing.lg,
|
|
},
|
|
});
|