chore: setup project for production
This commit is contained in:
20
app/WrapperFooter.jsx
Normal file
20
app/WrapperFooter.jsx
Normal file
@@ -0,0 +1,20 @@
|
||||
'use client'
|
||||
import Footer from '@/components/footer/Footer'
|
||||
import { usePathname } from 'next/navigation'
|
||||
import React from 'react'
|
||||
|
||||
|
||||
const WrapperFooter = () => {
|
||||
|
||||
const pathname = usePathname()
|
||||
const isLogin = pathname === '/accounts/login'
|
||||
if(isLogin) return null;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Footer />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default WrapperFooter
|
||||
Reference in New Issue
Block a user