refactor: sort typescript imports
This commit is contained in:
parent
7bb179a2dc
commit
cd7689d0f5
9 changed files with 33 additions and 24 deletions
|
@ -1,9 +1,11 @@
|
|||
import "../styles/globals.css";
|
||||
|
||||
import type { AppProps } from "next/app";
|
||||
import Head from "next/head";
|
||||
import { RecoilRoot } from "recoil";
|
||||
|
||||
import Container from "../components/Container";
|
||||
import Navigation from "../components/Navigation";
|
||||
import { RecoilRoot } from "recoil";
|
||||
import Head from "next/head";
|
||||
|
||||
function MyApp({ Component, pageProps }: AppProps) {
|
||||
const domain =
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
import { useEffect, useState } from "react";
|
||||
import { useRouter } from "next/router";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useRecoilState } from "recoil";
|
||||
import { userState } from "../../lib/state";
|
||||
import TextInput from "../../components/TextInput";
|
||||
import Loading from "../../components/Loading";
|
||||
import Button, { ButtonStyle } from "../../components/Button";
|
||||
import Notice from "../../components/Notice";
|
||||
|
||||
import BlueLink from "../../components/BlueLink";
|
||||
import toast from "../../lib/toast";
|
||||
import Button, { ButtonStyle } from "../../components/Button";
|
||||
import Loading from "../../components/Loading";
|
||||
import Notice from "../../components/Notice";
|
||||
import TextInput from "../../components/TextInput";
|
||||
import { fetchAPI, MeUser, SignupResponse } from "../../lib/api-fetch";
|
||||
import { userState } from "../../lib/state";
|
||||
import toast from "../../lib/toast";
|
||||
|
||||
interface CallbackResponse {
|
||||
has_account: boolean;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { GetServerSideProps } from "next";
|
||||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import { useRecoilValue } from "recoil";
|
||||
import Head from "next/head";
|
||||
|
||||
import { fetchAPI } from "../../lib/api-fetch";
|
||||
import { userState } from "../../lib/state";
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { useRouter } from "next/router";
|
||||
import { useEffect } from "react";
|
||||
import { useRecoilState } from "recoil";
|
||||
|
||||
import Loading from "../components/Loading";
|
||||
import { userState } from "../lib/state";
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { GetStaticProps } from "next";
|
||||
import { readdirSync } from "fs";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import { readFile } from "fs/promises";
|
||||
import { join } from "path";
|
||||
import { GetStaticProps } from "next";
|
||||
import Head from "next/head";
|
||||
import { join } from "path";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const names = readdirSync("./static_pages").filter((name) =>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { GetServerSideProps } from "next";
|
||||
|
||||
import PersonPage from "../../../components/PersonPage";
|
||||
import { Member } from "../../../lib/api";
|
||||
import * as API from "../../../lib/api-fetch";
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { GetServerSideProps } from "next";
|
||||
|
||||
import PersonPage from "../../../components/PersonPage";
|
||||
import { User } from "../../../lib/api";
|
||||
import * as API from "../../../lib/api-fetch";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue