mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: implement script edition and loading on the frontend
This commit is contained in:
parent
1b35e1cbb3
commit
cc1894cd9c
7 changed files with 544 additions and 3 deletions
20
apps/web/components/Footer/Footer.tsx
Normal file
20
apps/web/components/Footer/Footer.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
'use client'
|
||||
|
||||
import React from 'react'
|
||||
import OrgScripts from '@/components/OrgScripts/OrgScripts'
|
||||
import { usePathname } from 'next/navigation'
|
||||
import { OrgProvider } from '@/components/Contexts/OrgContext'
|
||||
|
||||
const Footer: React.FC = () => {
|
||||
const pathname = usePathname()
|
||||
const isDashboard = pathname?.startsWith('/dashboard')
|
||||
|
||||
// Don't run scripts in dashboard pages
|
||||
if (isDashboard) {
|
||||
return null
|
||||
}
|
||||
|
||||
return <OrgScripts />
|
||||
}
|
||||
|
||||
export default Footer
|
||||
Loading…
Add table
Add a link
Reference in a new issue