feat: add custom hooks for typed useDispatch and useSelector
This commit is contained in:
@@ -3,7 +3,7 @@ import { useMemo } from "react"
|
||||
import dayjs from "dayjs"
|
||||
import { Dropdown } from "antd"
|
||||
import { AuthApi } from "@/api"
|
||||
import { useAppDispatch, useAppSelector } from "@/store"
|
||||
import { useAppDispatch, useAppSelector } from "@/store/hooks"
|
||||
import { clearCurrentUser } from "@/store/auth-slice"
|
||||
|
||||
/**
|
||||
@@ -103,4 +103,4 @@ export default function HeroLayout() {
|
||||
</footer>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user