move clients settings into projects

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-02 22:33:13 +02:00
parent 1245047a7c
commit d9e3045a5b
11 changed files with 182 additions and 124 deletions

View File

@@ -40,7 +40,10 @@ const validation = z
type IForm = z.infer<typeof validation>;
export default function AddClient() {
interface Props {
projectId: string;
}
export default function AddClient(props: Props) {
const { organizationId, projectId } = useAppParams();
const router = useRouter();
const form = useForm<IForm>({
@@ -49,7 +52,7 @@ export default function AddClient() {
name: '',
cors: '',
tab: 'website',
projectId,
projectId: props.projectId ?? projectId,
},
});
const mutation = api.client.create.useMutation({