Skip to content

Commit 20bd8da

Browse files
committed
wip: refactor react types
1 parent 5b31335 commit 20bd8da

File tree

1,069 files changed

+1506
-2696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,069 files changed

+1506
-2696
lines changed

apps/admin/app/(all)/(dashboard)/ai/form.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"use client";
2-
import { FC } from "react";
32
import { useForm } from "react-hook-form";
43
import { Lightbulb } from "lucide-react";
54
import { IFormattedInstanceConfiguration, TInstanceAIConfigurationKeys } from "@plane/types";
@@ -15,7 +14,7 @@ type IInstanceAIForm = {
1514

1615
type AIFormValues = Record<TInstanceAIConfigurationKeys, string>;
1716

18-
export const InstanceAIForm: FC<IInstanceAIForm> = (props) => {
17+
export const InstanceAIForm: React.FC<IInstanceAIForm> = (props) => {
1918
const { config } = props;
2019
// store
2120
const { updateInstanceConfigurations } = useInstance();
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { ReactNode } from "react";
21
import { Metadata } from "next";
32

43
export const metadata: Metadata = {
54
title: "Artificial Intelligence Settings - God Mode",
65
};
76

8-
export default function AILayout({ children }: { children: ReactNode }) {
7+
export default function AILayout({ children }: { children: React.ReactNode }) {
98
return <>{children}</>;
109
}

apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx

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

3-
import { FC, useState } from "react";
3+
import { useState } from "react";
44
import isEmpty from "lodash/isEmpty";
55
import Link from "next/link";
66
import { useForm } from "react-hook-form";
@@ -23,7 +23,7 @@ type Props = {
2323

2424
type GithubConfigFormValues = Record<TInstanceGithubAuthenticationConfigurationKeys, string>;
2525

26-
export const InstanceGithubConfigForm: FC<Props> = (props) => {
26+
export const InstanceGithubConfigForm: React.FC<Props> = (props) => {
2727
const { config } = props;
2828
// states
2929
const [isDiscardChangesModalOpen, setIsDiscardChangesModalOpen] = useState(false);
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { ReactNode } from "react";
21
import { Metadata } from "next";
32

43
export const metadata: Metadata = {
54
title: "GitHub Authentication - God Mode",
65
};
76

8-
export default function GitHubAuthenticationLayout({ children }: { children: ReactNode }) {
7+
export default function GitHubAuthenticationLayout({ children }: { children: React.ReactNode }) {
98
return <>{children}</>;
109
}

apps/admin/app/(all)/(dashboard)/authentication/gitlab/form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC, useState } from "react";
1+
import { useState } from "react";
22
import isEmpty from "lodash/isEmpty";
33
import Link from "next/link";
44
import { useForm } from "react-hook-form";
@@ -21,7 +21,7 @@ type Props = {
2121

2222
type GitlabConfigFormValues = Record<TInstanceGitlabAuthenticationConfigurationKeys, string>;
2323

24-
export const InstanceGitlabConfigForm: FC<Props> = (props) => {
24+
export const InstanceGitlabConfigForm: React.FC<Props> = (props) => {
2525
const { config } = props;
2626
// states
2727
const [isDiscardChangesModalOpen, setIsDiscardChangesModalOpen] = useState(false);
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { ReactNode } from "react";
21
import { Metadata } from "next";
32

43
export const metadata: Metadata = {
54
title: "GitLab Authentication - God Mode",
65
};
76

8-
export default function GitlabAuthenticationLayout({ children }: { children: ReactNode }) {
7+
export default function GitlabAuthenticationLayout({ children }: { children: React.ReactNode }) {
98
return <>{children}</>;
109
}

apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use client";
2-
import { FC, useState } from "react";
2+
import { useState } from "react";
33
import isEmpty from "lodash/isEmpty";
44
import Link from "next/link";
55
import { useForm } from "react-hook-form";
@@ -22,7 +22,7 @@ type Props = {
2222

2323
type GoogleConfigFormValues = Record<TInstanceGoogleAuthenticationConfigurationKeys, string>;
2424

25-
export const InstanceGoogleConfigForm: FC<Props> = (props) => {
25+
export const InstanceGoogleConfigForm: React.FC<Props> = (props) => {
2626
const { config } = props;
2727
// states
2828
const [isDiscardChangesModalOpen, setIsDiscardChangesModalOpen] = useState(false);
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { ReactNode } from "react";
21
import { Metadata } from "next";
32

43
export const metadata: Metadata = {
54
title: "Google Authentication - God Mode",
65
};
76

8-
export default function GoogleAuthenticationLayout({ children }: { children: ReactNode }) {
7+
export default function GoogleAuthenticationLayout({ children }: { children: React.ReactNode }) {
98
return <>{children}</>;
109
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { ReactNode } from "react";
21
import { Metadata } from "next";
32

43
export const metadata: Metadata = {
54
title: "Authentication Settings - Plane Web",
65
};
76

8-
export default function AuthenticationLayout({ children }: { children: ReactNode }) {
7+
export default function AuthenticationLayout({ children }: { children: React.ReactNode }) {
98
return <>{children}</>;
109
}

apps/admin/app/(all)/(dashboard)/email/email-config-form.tsx

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

3-
import React, { FC, useMemo, useState } from "react";
3+
import { useMemo, useState } from "react";
44
import { useForm } from "react-hook-form";
55
// types
66
import { IFormattedInstanceConfiguration, TInstanceEmailConfigurationKeys } from "@plane/types";
@@ -27,7 +27,7 @@ const EMAIL_SECURITY_OPTIONS: { [key in TEmailSecurityKeys]: string } = {
2727
NONE: "No email security",
2828
};
2929

30-
export const InstanceEmailForm: FC<IInstanceEmailForm> = (props) => {
30+
export const InstanceEmailForm: React.FC<IInstanceEmailForm> = (props) => {
3131
const { config } = props;
3232
// states
3333
const [isSendTestEmailModalOpen, setIsSendTestEmailModalOpen] = useState(false);

0 commit comments

Comments
 (0)