@@ -2,13 +2,15 @@ import React, { useRef } from 'react';
2
2
import ReactDOM from 'react-dom' ;
3
3
import { SearchContainer } from './components/Search/SearchContainer.js' ;
4
4
import { CatalogueContainer } from './components/Catalogue/CatalogueContainer.js' ;
5
+ import { PubliccodeBadge } from './components/PubliccodeBadge.js' ;
5
6
import { CatalogueItem } from './components/Catalogue/CatalogueItem.js' ;
6
7
import { MailingListSubscribe } from './components/MailingList/MailingListSubscribe.js' ;
7
8
import { MailingListConfirmation } from './components/MailingList/MailingListConfirmation.js' ;
8
9
9
10
export const App = ( ) => {
10
11
const search = useRef ( Array . from ( document . getElementsByTagName ( 'custom-search' ) ) ) ;
11
12
const catalogue = useRef ( Array . from ( document . getElementsByTagName ( 'custom-catalogue' ) ) ) ;
13
+ const publiccodeBadge = useRef ( Array . from ( document . getElementsByTagName ( 'publiccode-badge' ) ) ) ;
12
14
const thumbnails = useRef ( Array . from ( document . getElementsByTagName ( 'catalogue-item' ) ) ) ;
13
15
const mailingListSubscribe = useRef ( Array . from ( document . getElementsByTagName ( 'mailing-list-subscribe' ) ) ) ;
14
16
const mailingListConfirmation = useRef ( Array . from ( document . getElementsByTagName ( 'mailing-list-confirmation' ) ) ) ;
@@ -32,6 +34,7 @@ export const App = () => {
32
34
{ thumbnails . current . map ( ( t ) => renderThumbnail ( t ) ) }
33
35
{ mailingListSubscribe . current . map ( ( p ) => renderCustomElement ( p , MailingListSubscribe ) ) }
34
36
{ mailingListConfirmation . current . map ( ( p ) => renderCustomElement ( p , MailingListConfirmation ) ) }
37
+ { publiccodeBadge . current . map ( ( p ) => renderCustomElement ( p , PubliccodeBadge ) ) }
35
38
</ >
36
39
) ;
37
40
} ;
0 commit comments