Skip to content

Commit

Permalink
feat: Ajout du composant <bib-retroaction-usager>
Browse files Browse the repository at this point in the history
  • Loading branch information
remillc committed May 13, 2024
1 parent 9e52d23 commit 62ccf29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
23 changes: 0 additions & 23 deletions src/components/RetroactionUsager.jsx

This file was deleted.

13 changes: 10 additions & 3 deletions src/templates/PageTemplate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ import AppBar from '@/components/AppBar'
import Footer from '@/components/Footer'
import Link from '@/components/Link'
import SEO from '@/components/SEO'
import RetroactionUsager from '@/components/RetroactionUsager'

const shortcodes = { Link, Accordion, AccordionDetails, AccordionSummary, Button, Box, Divider, Tab, Tabs } // Provide common components here

export default function PageTemplate({ children }) {
return (
<MDXProvider components={shortcodes}>
<udem-urgence></udem-urgence>
<AppBar />
<bib-avis bouton-fermer />
<Container component="main">{children}</Container>
<RetroactionUsager />
<Container component="main">
{children}

<Box component="aside" className="article-footer" sx={{ pt: '2rem' }}>
<bib-retroaction-usager />
</Box>
</Container>
<Footer />
</MDXProvider>
)
Expand All @@ -37,6 +42,8 @@ export function Head({ pageContext, location }) {
return (
<SEO title={frontmatter?.title} pathname={pathname}>
<script type="module" src="https://cdn.jsdelivr.net/gh/bibudem/ui@0/dist/bib-avis.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/gh/bibudem/ui@0/dist/bib-retroaction-usager.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/gh/bibudem/ui@0/dist/udem-urgence.js"></script>
</SEO>
)
}

0 comments on commit 62ccf29

Please sign in to comment.