Skip to content

Commit

Permalink
fix: Disable landing page feature and remove related configuration (#902
Browse files Browse the repository at this point in the history
)

Co-authored-by: Noggling <[email protected]>
  • Loading branch information
Noggling and Noggling authored Dec 18, 2024
1 parent 9b0c0a4 commit f5c4de0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changeset/pr-902-2242181855.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

---
---
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { LoadPage } from './LoadPage';
import { useFeature } from '@equinor/fusion-framework-react-app/feature-flag';

export const PortalPage = (prop: { route?: Partial<PortalRoute> }) => {
const { feature } = useFeature('landing-page');
const { feature } = { feature: { enabled: false } }; //useFeature('landing-page');
switch (prop.route?.pageKey) {
case 'project-portal':
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ export function createPortalFramework(portalConfig: PortalConfig) {
enableFeatureFlagging(config, (builder) => {
builder.addPlugin(
createLocalStoragePlugin([
{
key: 'landing-page',
title: 'New Landing pages',
description:
'When enabled you will get new landing pages in the portal. The functionality is the same but the loading is done differently',
enabled: false,
},
// {
// key: 'landing-page',
// title: 'New Landing pages',
// description:
// 'When enabled you will get new landing pages in the portal. The functionality is the same but the loading is done differently',
// enabled: false,
// },
{
key: 'project-prediction',
title: 'Allocated Projects',
Expand Down

0 comments on commit f5c4de0

Please sign in to comment.