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>
40 lines
828 B
TypeScript
40 lines
828 B
TypeScript
import { StyleSheet, Text } from "react-native";
|
|
|
|
import { fonts, radii, spacing } from "@/constants/theme";
|
|
import { useAppTheme } from "@/contexts/ThemeContext";
|
|
|
|
type AuthNoticeProps = {
|
|
children: string;
|
|
};
|
|
|
|
export function AuthNotice({ children }: AuthNoticeProps) {
|
|
const { colors } = useAppTheme();
|
|
|
|
return (
|
|
<Text
|
|
style={[
|
|
styles.notice,
|
|
{
|
|
color: colors.mutedForeground,
|
|
backgroundColor: colors.muted,
|
|
borderColor: colors.border,
|
|
},
|
|
]}
|
|
>
|
|
{children}
|
|
</Text>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
notice: {
|
|
fontSize: 14,
|
|
fontFamily: fonts.body,
|
|
lineHeight: 20,
|
|
borderWidth: StyleSheet.hairlineWidth,
|
|
borderRadius: radii.lg,
|
|
paddingHorizontal: spacing.md,
|
|
paddingVertical: spacing.sm + 2,
|
|
},
|
|
});
|