Skip to content

Commit 56eeefa

Browse files
committed
FO-2916: Committing merge conflicts
2 parents f4d0dc3 + 5ab93f9 commit 56eeefa

File tree

6 files changed

+10
-59
lines changed

6 files changed

+10
-59
lines changed

src/app.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { InternflateDecorator } from './components/internflate-decorator/internf
55
import { Hovedside } from './hovedside/hovedside';
66
import { DataFetcher } from './components/datafetcher';
77
import { useDataFetcherStore } from './stores/data-fetcher-store';
8-
import { PRELANSERING_INFO_OM_LOSNING_TOGGLE } from './rest/feature';
9-
import { Prelansering } from './prelansering-side/prelansering';
8+
import { PTO_VEDTAKSSTOTTE_PILOT } from './rest/feature';
9+
import { PrelanseringInfoSide } from './prelansering-side/prelansering-side';
1010

1111
function App() {
1212
return (
@@ -21,10 +21,10 @@ function App() {
2121

2222
function Innhold() {
2323
const { featuresFetcher } = useDataFetcherStore();
24-
const erPrelanseringPa = featuresFetcher.data[PRELANSERING_INFO_OM_LOSNING_TOGGLE];
24+
const erPilotTogglePa = featuresFetcher.data[PTO_VEDTAKSSTOTTE_PILOT];
2525

26-
return erPrelanseringPa ? (
27-
<Prelansering />
26+
return !erPilotTogglePa ? (
27+
<PrelanseringInfoSide />
2828
) : (
2929
<>
3030
<Header />

src/hovedside/hovedside.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ import './hovedside.less';
88
export const Hovedside = () => {
99
return (
1010
<main className="hovedside">
11-
<DataFetcher>
1211
<Filters />
1312
{/*<FilterEtiketter/>*/}
1413
<div className="hovedside__table">
1514
<PaginationBar />
1615
<UserTable />
1716
</div>
18-
</DataFetcher>
1917
</main>
2018
);
2119
};

src/mock/data/features.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { JSONObject } from 'yet-another-fetch-mock';
2-
import { Features, PRELANSERING_INFO_OM_LOSNING_TOGGLE } from '../../rest/feature';
2+
import { Features, PTO_VEDTAKSSTOTTE_PILOT } from '../../rest/feature';
33

44
const features: Features & JSONObject = {
5-
[PRELANSERING_INFO_OM_LOSNING_TOGGLE]: true,
5+
[PTO_VEDTAKSSTOTTE_PILOT]: true,
66
};
77

88
export default features;

src/prelansering-side/prelansering-sjekk.tsx

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/prelansering-side/prelansering.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/rest/feature.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
export const PRELANSERING_INFO_OM_LOSNING_TOGGLE = 'pto.vedtaksstotte.pilot';
2-
1+
export const PTO_VEDTAKSSTOTTE_PILOT = 'pto.vedtaksstotte.pilot';
32

43
export const TOGGLES = [
5-
PRELANSERING_INFO_OM_LOSNING_TOGGLE,
4+
PTO_VEDTAKSSTOTTE_PILOT,
65
];
76

87
export interface Features {
9-
[PRELANSERING_INFO_OM_LOSNING_TOGGLE]: boolean;
8+
[PTO_VEDTAKSSTOTTE_PILOT]: boolean;
109
}

0 commit comments

Comments
 (0)