Skip to content

Commit

Permalink
JSXをreactからimportするようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
piny940 committed Jan 14, 2025
1 parent 851ded7 commit 4f883b9
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 17 deletions.
14 changes: 2 additions & 12 deletions frontend/src/components/ApprovalList.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import EditIcon from '@mui/icons-material/Edit'
import DeleteIcon from '@mui/icons-material/Delete'
import CopyIcon from '@mui/icons-material/FileCopy'
import { Approval } from '@/utils/types'
import {
Box,
Button,
IconButton,
List,
ListItem,
Typography,
} from '@mui/material'
import { Button, List, ListItem, Typography } from '@mui/material'
import { useRouter } from 'next/navigation'
import { useCallback, useEffect, useState } from 'react'
import { useCallback, useEffect, useState, JSX } from 'react'
import { useUser } from '@/context/user'
import { client } from '@/utils/client'

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ApproveButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { client } from '@/utils/client'
import { Button } from '@mui/material'
import { useRouter } from 'next/navigation'
import { useCallback } from 'react'
import { useCallback, JSX } from 'react'

type ApproveButtonProps = {
clientID: string
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/ClientForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Box, Button, TextField } from '@mui/material'
import { Control, Controller } from 'react-hook-form'
import { RedirectURIsEdit, RedirectURIsFields } from './RedirectURIsEdit'
import { JSX } from 'react'

export type ClientInput = {
name: string
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ClientList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CopyIcon from '@mui/icons-material/FileCopy'
import { Client } from '@/utils/types'
import { Box, IconButton, List, ListItem, Typography } from '@mui/material'
import { useRouter } from 'next/navigation'
import { useCallback, useEffect, useState } from 'react'
import { useCallback, useEffect, useState, JSX } from 'react'
import { useUser } from '@/context/user'
import { client } from '@/utils/client'

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useUser } from '@/context/user'
import { client } from '@/utils/client'
import { AppBar, Box, Button, Toolbar, Typography } from '@mui/material'
import Link from 'next/link'
import { useCallback } from 'react'
import { useCallback, JSX } from 'react'

export const Header = (): JSX.Element => {
const { user, refresh } = useUser()
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { Controller, useForm } from 'react-hook-form'
import { Box, Button, TextField, Typography } from '@mui/material'
import { useCallback } from 'react'
import { useCallback, JSX } from 'react'
import { client } from '@/utils/client'
import Link from 'next/link'
import { useUser } from '@/context/user'
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/RedirectURIsEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
useFieldArray,
} from 'react-hook-form'
import DeleteIcon from '@mui/icons-material/Delete'
import { JSX } from 'react'

export interface RedirectURIsFields extends FieldValues {
redirectURIs: Array<{ url: string }>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/SignupForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { client } from '@/utils/client'
import { Box, Button, TextField, Typography } from '@mui/material'
import Link from 'next/link'
import { useRouter, useSearchParams } from 'next/navigation'
import { useCallback } from 'react'
import { useCallback, JSX } from 'react'
import { Controller, useForm } from 'react-hook-form'

type SignupInput = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/context/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
useContext,
useEffect,
useState,
JSX,
} from 'react'

interface UserContextInterface {
Expand Down

0 comments on commit 4f883b9

Please sign in to comment.