fix: update EdgeProvider to correctly set back button visibility based on pathname

This commit is contained in:
yoosangwook 2025-05-08 18:00:57 +09:00
parent 4ab2b225cd
commit b4db26d80a

View File

@ -55,6 +55,8 @@ export default function EdgeProvider({ children }: React.PropsWithChildren) {
useEffect(() => {
if (pathname === '/') {
setBackBtn(false)
} else {
setBackBtn(true)
}
//사이드바 초기화
reset()