feat: implement script edition and loading on the frontend

This commit is contained in:
swve 2025-06-08 19:27:11 +02:00
parent 1b35e1cbb3
commit cc1894cd9c
7 changed files with 544 additions and 3 deletions

View 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