Skip to content

Commit f495bbd

Browse files
DVidal1205DGoel1602
authored andcommitted
oops... format
1 parent 618feda commit f495bbd

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

apps/blade/src/app/admin/forms/[slug]/responses/_components/PerUserResponsesView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use client";
22

3+
import { useState } from "react";
4+
import Link from "next/link";
35
import {
46
ChevronLeft,
57
ChevronRight,
@@ -10,15 +12,13 @@ import {
1012
FileText,
1113
Loader2,
1214
} from "lucide-react";
13-
import { useState } from "react";
1415

1516
import type { FormType } from "@forge/consts/knight-hacks";
1617
import { Button } from "@forge/ui/button";
1718
import { Card, CardContent, CardHeader, CardTitle } from "@forge/ui/card";
1819
import { Separator } from "@forge/ui/separator";
1920
import { toast } from "@forge/ui/toast";
2021

21-
import Link from "next/link";
2222
import { api } from "~/trpc/react";
2323

2424
interface PerUserResponsesViewProps {

apps/blade/src/app/forms/[formName]/_components/form-responder-client.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
22

3-
import { CheckCircle2, Loader2, XCircle } from "lucide-react";
4-
import { useRouter } from "next/navigation";
53
import { useEffect, useState } from "react";
4+
import { useRouter } from "next/navigation";
5+
import { CheckCircle2, Loader2, XCircle } from "lucide-react";
66
import { z } from "zod";
77

88
import { Button } from "@forge/ui/button";
@@ -296,13 +296,13 @@ export function FormResponderClient({
296296
if (question.type === "EMAIL" && typeof response === "string") {
297297
return emailSchema.safeParse(response).success;
298298
}
299-
if (question.type === "PHONE" && typeof response === "string") {
300-
return phoneSchema.safeParse(response).success;
301-
}
302-
if (question.type === "LINK" && typeof response === "string") {
303-
return linkSchema.safeParse(response).success;
304-
}
305-
return true;
299+
if (question.type === "PHONE" && typeof response === "string") {
300+
return phoneSchema.safeParse(response).success;
301+
}
302+
if (question.type === "LINK" && typeof response === "string") {
303+
return linkSchema.safeParse(response).success;
304+
}
305+
return true;
306306
}
307307

308308
const response = responses[question.question];

apps/blade/src/components/admin/forms/question-edit-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"use client";
22

33
import type { DraggableSyntheticListeners } from "@dnd-kit/core";
4+
import type { z } from "zod";
5+
import * as React from "react";
46
import {
57
AlignLeft,
68
AtSign,
@@ -22,8 +24,6 @@ import {
2224
Trash,
2325
X,
2426
} from "lucide-react";
25-
import * as React from "react";
26-
import type { z } from "zod";
2727

2828
import type { QuestionValidator } from "@forge/consts/knight-hacks";
2929
import { FORM_QUESTION_TYPES } from "@forge/consts/knight-hacks";

packages/api/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import type { APIGuildMember } from "discord-api-types/v10";
2+
import type { JSONSchema7 } from "json-schema";
3+
import { cookies } from "next/headers";
14
import { REST } from "@discordjs/rest";
25
import { TRPCError } from "@trpc/server";
3-
import type { APIGuildMember } from "discord-api-types/v10";
46
import { Routes } from "discord-api-types/v10";
57
import { and, eq, gt, inArray } from "drizzle-orm";
6-
import type { JSONSchema7 } from "json-schema";
7-
import { cookies } from "next/headers";
88
import { Resend } from "resend";
99
import Stripe from "stripe";
1010

0 commit comments

Comments
 (0)