6d2711e36e
Default to beenvoice.soconnor.dev with server settings hidden behind Advanced; add Entities tab with clients/businesses, invoice creation, UI fixes for dashboard layout, date fields, FAB position, and card-matched button radius. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
757 B
TypeScript
26 lines
757 B
TypeScript
import { router, Stack } from "expo-router";
|
|
import { Alert } from "react-native";
|
|
|
|
import { AppBackground } from "@/components/AppBackground";
|
|
import { ClientForm } from "@/components/clients/ClientForm";
|
|
import { useTabBarScrollPadding } from "@/lib/tab-bar-insets";
|
|
|
|
export default function NewClientScreen() {
|
|
const scrollPadding = useTabBarScrollPadding();
|
|
|
|
return (
|
|
<AppBackground>
|
|
<Stack.Screen options={{ headerBackTitle: "Entities" }} />
|
|
<ClientForm
|
|
mode="create"
|
|
scrollPadding={scrollPadding}
|
|
onSaved={() => {
|
|
Alert.alert("Client created", "Your client has been saved.", [
|
|
{ text: "OK", onPress: () => router.back() },
|
|
]);
|
|
}}
|
|
/>
|
|
</AppBackground>
|
|
);
|
|
}
|