Skip to content

Commit

Permalink
Habilita VLibras por padrão em todas as páginas da Intranet (Fixes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Jul 23, 2024
1 parent a141d49 commit 1f2d318
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/packages/portalbrasil-intranet/news/1.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Habilita VLibras por padrão em todas as páginas da Intranet [@ericof]
9 changes: 8 additions & 1 deletion frontend/packages/portalbrasil-intranet/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Bookmarks
import Bookmarking from './components/Bookmarking/Bookmarking';

// VLibras
import Libras from '@plonegovbr/volto-vlibras/components/Libras';

// Blocks
/// Listing block variations
import ProfilesTemplate from './components/Blocks/Listing/ProfilesGridTemplate';
Expand Down Expand Up @@ -138,13 +141,17 @@ const applyConfig = (config) => {
'News Item': ['title', 'description', 'leadimage'],
};

// Bookmarks
// Habilita Bookmarks e VLibras
config.settings.appExtras = [
...config.settings.appExtras,
{
match: '/',
component: Bookmarking,
},
{
match: '',
component: Libras,
},
];

//Reducers
Expand Down

0 comments on commit 1f2d318

Please sign in to comment.