use zustand
This commit is contained in:
parent
d2d358bff2
commit
5f29bc436c
15 changed files with 74 additions and 83 deletions
|
@ -1,6 +1,6 @@
|
|||
import { useRef, useState } from 'react'
|
||||
import { PostsService } from '../posts/postsService.ts'
|
||||
import { useUser } from '../../user/user.ts'
|
||||
import { useUserStore } from '../../user/user.ts'
|
||||
import { MediaService } from '../../media/mediaService.ts'
|
||||
import NewPostWidget from '../../../components/NewPostWidget.tsx'
|
||||
import SingleColumnLayout from '../../../layouts/SingleColumnLayout.tsx'
|
||||
|
@ -21,7 +21,7 @@ interface HomePageProps {
|
|||
const PageSize = 20
|
||||
|
||||
export default function HomePage({ postsService, mediaService }: HomePageProps) {
|
||||
const user = useUser()
|
||||
const user = useUserStore((state) => state.user)
|
||||
useSaveSignupCodeToLocalStorage()
|
||||
const [isSubmitting, setIsSubmitting] = useState(false)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue