Skip to content

Commit

Permalink
🎨 Format all files with new Prettier version
Browse files Browse the repository at this point in the history
  • Loading branch information
leodr committed Jul 24, 2021
1 parent e671caa commit 34070e6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 23 deletions.
3 changes: 2 additions & 1 deletion scripts/seedDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ async function seed() {
companyWebsite: faker.internet.url(),
companySize: faker.datatype.number(100),
productsOfInterest: {
"Ich möchte mehr über das Digitalkonzept der Showcases erfahren": maybe(),
"Ich möchte mehr über das Digitalkonzept der Showcases erfahren":
maybe(),
"Ich würde gerne die Labs besuchen": maybe(),
"Ich möchte die Digitalstadt Ahaus besichtigen": maybe(),
"Mich interessiert eine Kooperation": maybe(),
Expand Down
7 changes: 4 additions & 3 deletions src/components/form-data-list/DataEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ export default function DataEntry({
propertyName,
value,
}: DataEntryProps): ReactElement {
const prettyName = useMemo(() => prettifyPropertyName(propertyName), [
propertyName,
]);
const prettyName = useMemo(
() => prettifyPropertyName(propertyName),
[propertyName]
);

switch (typeof value) {
case "string":
Expand Down
8 changes: 2 additions & 6 deletions src/pages/join.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ export default function JoinPage() {
) {
event.preventDefault();

const {
email,
password,
firstName,
lastName,
} = event.currentTarget.elements;
const { email, password, firstName, lastName } =
event.currentTarget.elements;

setSubmissionState("pending");
try {
Expand Down
9 changes: 2 additions & 7 deletions src/pages/new-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,8 @@ interface CreateFormForm {
}

export default function NewFormPage() {
const {
register,
formState,
handleSubmit,
watch,
control,
} = useForm<CreateFormForm>();
const { register, formState, handleSubmit, watch, control } =
useForm<CreateFormForm>();
const { errors } = formState;

const router = useRouter();
Expand Down
8 changes: 2 additions & 6 deletions src/pages/setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ export default function SetupPage() {
) {
event.preventDefault();

const {
email,
password,
firstName,
lastName,
} = event.currentTarget.elements;
const { email, password, firstName, lastName } =
event.currentTarget.elements;

setSubmissionState("pending");
try {
Expand Down

0 comments on commit 34070e6

Please sign in to comment.