diff options
author | Michael Hunteman <michael@huntm.net> | 2024-04-26 11:51:49 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-04-26 11:51:49 -0700 |
commit | c67f9987cad34ec1a0a03e72326173d23e3f4360 (patch) | |
tree | e785366406fff94d57d17c9a45668b7810b74de9 /src/features/auth | |
parent | fc07a039bb79cc7647b7ba7edee46e4f019093e0 (diff) |
Use bun
Diffstat (limited to 'src/features/auth')
-rw-r--r-- | src/features/auth/GuestLogin.tsx | 4 | ||||
-rw-r--r-- | src/features/auth/authSlice.ts | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/features/auth/GuestLogin.tsx b/src/features/auth/GuestLogin.tsx index 94bad05..4da7e45 100644 --- a/src/features/auth/GuestLogin.tsx +++ b/src/features/auth/GuestLogin.tsx @@ -1,9 +1,11 @@ +import React from 'react'; import { useNavigate } from 'react-router-dom'; import { useDispatch } from 'react-redux'; import { Button, Container, TextField, Typography } from '@mui/material'; import { useForm } from 'react-hook-form'; import { setCredentials } from './authSlice'; -import { useLoginMutation, LoginRequest } from '../../apiSlice'; +import { useLoginMutation } from '../../apiSlice'; +import type { LoginRequest } from '../../apiSlice'; function GuestLogin() { const dispatch = useDispatch(); diff --git a/src/features/auth/authSlice.ts b/src/features/auth/authSlice.ts index 34ede58..5eccd65 100644 --- a/src/features/auth/authSlice.ts +++ b/src/features/auth/authSlice.ts @@ -1,6 +1,6 @@ import { createSlice } from '@reduxjs/toolkit'; import type { RootState } from '../../store'; -import { Guest } from '../../apiSlice'; +import type { Guest } from '../../apiSlice'; type AuthState = { guest: Guest | null; |