Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyray authored and actions-user committed Feb 7, 2024
1 parent 3f28b49 commit aa494d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions shared/src/types/employers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Timestamp } from 'firebase-admin/firestore';
import { DocumentReference } from 'firebase-admin/firestore';
import { User } from './user';
import { DocumentReference, Timestamp } from 'firebase-admin/firestore';

export const EMPLOYERS_FIRESTORE_PATH = 'employers';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
'use client';

import { zodResolver } from '@hookform/resolvers/zod';
import { Employer } from '@socialincome/shared/src/types/employers';
import { USER_FIRESTORE_PATH, User } from '@socialincome/shared/src/types/user';
import { USER_FIRESTORE_PATH } from '@socialincome/shared/src/types/user';
import { Button, Form, FormControl, FormField, FormItem, FormMessage, Input } from '@socialincome/ui';
import { DocumentReference, Timestamp, addDoc, collection, doc } from 'firebase/firestore';
import { Timestamp, addDoc, collection, doc } from 'firebase/firestore';
import { useForm } from 'react-hook-form';
import { useFirestore } from 'reactfire';
import * as z from 'zod';
Expand Down Expand Up @@ -37,7 +36,7 @@ export function AddEmployerForm({ onNewEmployerSubmitted, translations }: AddEmp
const onSubmit = async (values: FormSchema) => {
if (user) {
const userId = user!.id;

await addDoc(collection(firestore, 'employers'), {
...values,
isCurrent: true,
Expand Down

0 comments on commit aa494d5

Please sign in to comment.