Skip to content

Commit 42e4e9a

Browse files
authored
Merge pull request #2293 from navikt/stories-editor-only
Noen stories editor-only
2 parents 8c3003d + 36562d0 commit 42e4e9a

File tree

84 files changed

+163
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+163
-73
lines changed

packages/nextjs/src/components/ComponentMapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { PartsMapper } from './parts/PartsMapper';
66
import { LayoutMapper } from './layouts/LayoutMapper';
77
import { FragmentComponent } from './FragmentComponent';
88
import { AuthDependantRender } from './_common/authDependantRender/AuthDependantRender';
9-
import { EditorHelp } from './_editor-only/editor-help/EditorHelp';
9+
import { EditorHelp } from './_editor-only/editorHelp/EditorHelp';
1010

1111
type Props = {
1212
componentProps?: ComponentProps;

packages/nextjs/src/components/FragmentComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { FragmentComponentProps } from 'types/component-props/_component-common';
33
import { ContentProps } from 'types/content-props/_content-common';
4-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
4+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
55
import { ComponentEditorProps, ComponentMapper } from './ComponentMapper';
66

77
type Props = {

packages/nextjs/src/components/_common/accordion/Accordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Shortcuts, useShortcuts } from 'utils/useShortcuts';
66
import { usePageContentProps } from 'store/pageContext';
77
import { getDecoratorParams } from 'utils/decorator-utils';
88
import { innholdsTypeMap } from 'types/content-props/_content-common';
9-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
9+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
1010
import { PartConfigAccordion } from 'components/parts/accordion/AccordionPart';
1111
import { classNames } from 'utils/classnames';
1212
import { handleStickyScrollOffset } from 'utils/scroll-to';

packages/nextjs/src/components/_common/areaCard/AreaCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { LinkPanel } from '@navikt/ds-react';
3-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
3+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
44
import { classNames } from 'utils/classnames';
55
import { useLayoutConfig } from 'components/layouts/useLayoutConfig';
66
import { LenkeBase } from 'components/_common/lenke/lenkeBase/LenkeBase';
@@ -19,7 +19,7 @@ type Props = {
1919

2020
export const AreaCard = ({ path, title, area, linkGroup, className, ...rest }: Props) => {
2121
const { layoutConfig } = useLayoutConfig();
22-
const analyticsLinkGroup= linkGroup ?? layoutConfig.title;
22+
const analyticsLinkGroup = linkGroup ?? layoutConfig.title;
2323

2424
if (!area) {
2525
return <EditorHelp text={'Velg en grafikk for kortet'} />;

packages/nextjs/src/components/_common/areaCard/graphics/AreaCardGraphics.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { classNames } from 'utils/classnames';
3-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
3+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
44
import { AreaCardGraphicsType } from 'components/parts/area-card/AreaCardPart';
55
import { CasesAnimation } from './logged-in/cases/CasesAnimation';
66
import { EmploymentStatusFormAnimation } from './logged-in/employment-status-form/EmploymentStatusFormAnimation';

packages/nextjs/src/components/_common/card/MicroCard/MicroCards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { BodyShort } from '@navikt/ds-react';
33
import { CardProps, CardTargetProps, getCardProps } from 'components/_common/card/card-utils';
4-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
4+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
55
import { usePageContentProps } from 'store/pageContext';
66

77
import { MicroCard } from './MicroCard';

packages/nextjs/src/components/_common/contact-option/DefaultOption.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { AnalyticsEvents } from 'utils/analytics';
88
import { useLayoutConfig } from 'components/layouts/useLayoutConfig';
99
import { ParsedHtml } from 'components/_common/parsedHtml/ParsedHtml';
1010
import Config from 'config';
11-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
11+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
1212
import { ChannelType, DefaultContactData } from 'components/parts/contact-option/ContactOptionPart';
1313
import { Icon } from 'components/_common/contact-option/icon/Icon';
1414

packages/nextjs/src/components/_common/content-list/ContentList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getUrlFromContent } from 'utils/links-from-content';
77
import { DateTimeKey } from 'types/datetime';
88
import { ContentProps } from 'types/content-props/_content-common';
99
import { getNestedValueFromKeyString } from 'utils/objects';
10-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
10+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
1111

1212
const getDate = (content: ContentProps, dateLabelKey?: DateTimeKey): string => {
1313
const dateLabel = dateLabelKey && getNestedValueFromKeyString(content, dateLabelKey);

packages/nextjs/src/components/_common/lenkeliste/Lenkeliste.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useId } from 'react';
22
import { Heading } from '@navikt/ds-react';
33
import { LinkProps } from 'types/link-props';
44
import { LenkeStandalone } from 'components/_common/lenke/lenkeStandalone/LenkeStandalone';
5-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
5+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
66
import { classNames } from 'utils/classnames';
77
import { usePageContentProps } from 'store/pageContext';
88
import { translator } from 'translations';

packages/nextjs/src/components/_common/pageNavigationMenu/PageNavigationMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { AnchorLink } from 'components/parts/page-navigation-menu/PageNavigation
55
import { LenkeBase } from 'components/_common/lenke/lenkeBase/LenkeBase';
66
import { classNames } from 'utils/classnames';
77
import { AnalyticsEvents } from 'utils/analytics';
8-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
8+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
99

1010
import style from './PageNavigationMenu.module.scss';
1111

packages/nextjs/src/components/_common/parsedHtml/ParsedHtml.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { processedHtmlMacroTag, ProcessedHtmlProps } from 'types/processed-html-
1818
import { headingToLevel, headingToSize, isHeadingTag } from 'types/typo-style';
1919
import { MacroType } from 'types/macro-props/_macros-common';
2020
import { MacroMapper } from 'components/macros/MacroMapper';
21-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
21+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
2222
import { LenkeInline } from 'components/_common/lenke/lenkeInline/LenkeInline';
2323
import { Table } from 'components/_common/table/Table';
2424

packages/nextjs/src/components/_common/uxsignalsWidget/UxSignalsWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect } from 'react';
22
import { getCurrentConsent } from '@navikt/nav-dekoratoren-moduler';
3-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
3+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
44

55
import style from './UxSignalsWidget.module.scss';
66

packages/nextjs/src/components/_editor-only/editor-hacks/auto-refresh-disable/AutoReloadDisableHack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BodyLong } from '@navikt/ds-react';
22
import { useEffect, useState } from 'react';
33
import { AlertBox } from 'components/_common/alertBox/AlertBox';
4-
import { EditorLinkWrapper } from 'components/_editor-only/editor-link-wrapper/EditorLinkWrapper';
4+
import { EditorLinkWrapper } from 'components/_editor-only/editorLinkWrapper/EditorLinkWrapper';
55
import { LenkeInline } from 'components/_common/lenke/lenkeInline/LenkeInline';
66
import { ContentProps } from 'types/content-props/_content-common';
77
import { isEditorFeatureEnabled } from 'components/_editor-only/site-info/feature-toggles/editor-feature-toggles-utils';
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import type { Meta, StoryObj } from '@storybook/react';
2+
import { PageContextProvider } from 'store/pageContext';
3+
import { EditorHelp } from './EditorHelp';
4+
5+
const withMockedPageContent = (Story: any) => (
6+
<PageContextProvider content={{ editorView: 'edit' }}>
7+
<Story />
8+
</PageContextProvider>
9+
);
10+
11+
const meta = {
12+
component: EditorHelp,
13+
decorators: [withMockedPageContent],
14+
} satisfies Meta<typeof EditorHelp>;
15+
16+
export default meta;
17+
18+
type Story = StoryObj<typeof meta>;
19+
20+
export const Info: Story = {
21+
args: {
22+
text: 'Help text',
23+
globalWarningText: 'Global warning text',
24+
type: 'info',
25+
},
26+
};
27+
28+
export const Error: Story = {
29+
args: {
30+
...Info.args,
31+
type: 'error',
32+
},
33+
};
34+
35+
export const Help: Story = {
36+
args: {
37+
...Info.args,
38+
type: 'help',
39+
},
40+
};
41+
42+
export const ArrowUp: Story = {
43+
args: {
44+
...Info.args,
45+
type: 'arrowUp',
46+
},
47+
};
48+
49+
export const ArrowDown: Story = {
50+
args: {
51+
...Info.args,
52+
type: 'arrowDown',
53+
},
54+
};

packages/nextjs/src/components/_editor-only/editor-help/EditorHelp.tsx renamed to packages/nextjs/src/components/_editor-only/editorHelp/EditorHelp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BodyShort } from '@navikt/ds-react';
33
import { usePageContentProps } from 'store/pageContext';
44
import { StaticImage } from 'components/_common/image/StaticImage';
55
import { classNames } from 'utils/classnames';
6-
import { EditorLinkWrapper } from 'components/_editor-only/editor-link-wrapper/EditorLinkWrapper';
6+
import { EditorLinkWrapper } from 'components/_editor-only/editorLinkWrapper/EditorLinkWrapper';
77
import { LenkeInline } from 'components/_common/lenke/lenkeInline/LenkeInline';
88
import { RenderToEditorGlobalWarnings } from 'components/_editor-only/global-warnings/EditorGlobalWarnings';
99

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import type { Meta, StoryObj } from '@storybook/react';
2+
import { PageContextProvider } from 'store/pageContext';
3+
import { EditorLinkWrapper } from './EditorLinkWrapper';
4+
5+
const withMockedPageContent = (Story: any) => (
6+
<PageContextProvider content={{ editorView: 'edit' }}>
7+
<Story />
8+
</PageContextProvider>
9+
);
10+
11+
const meta = {
12+
component: EditorLinkWrapper,
13+
decorators: [withMockedPageContent],
14+
} satisfies Meta<typeof EditorLinkWrapper>;
15+
16+
export default meta;
17+
18+
type Story = StoryObj<typeof meta>;
19+
20+
export const Default: Story = {
21+
args: {
22+
children: <a href="https://www.nav.no">nav.no</a>,
23+
},
24+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { Meta, StoryObj } from '@storybook/react';
2+
import { LayersEditorWarning } from './LayersEditorWarning';
3+
4+
const meta = {
5+
component: LayersEditorWarning,
6+
} satisfies Meta<typeof LayersEditorWarning>;
7+
8+
export default meta;
9+
10+
type Story = StoryObj<typeof meta>;
11+
12+
export const Default: Story = {};

packages/nextjs/src/components/_editor-only/references-info/result/ReferencesInfoResult.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState } from 'react';
22
import { Heading } from '@navikt/ds-react';
3-
import { EditorLinkWrapper } from 'components/_editor-only/editor-link-wrapper/EditorLinkWrapper';
3+
import { EditorLinkWrapper } from 'components/_editor-only/editorLinkWrapper/EditorLinkWrapper';
44
import { Button } from 'components/_common/button/Button';
55
import { ReferencesLinks } from 'components/_editor-only/references-info/result/link/ReferencesLinks';
66
import { removeDuplicates } from 'utils/arrays';

packages/nextjs/src/components/_editor-only/references-info/result/link/ReferencesLinks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Heading } from '@navikt/ds-react';
33
import { LenkeInline } from 'components/_common/lenke/lenkeInline/LenkeInline';
4-
import { EditorLinkWrapper } from 'components/_editor-only/editor-link-wrapper/EditorLinkWrapper';
4+
import { EditorLinkWrapper } from 'components/_editor-only/editorLinkWrapper/EditorLinkWrapper';
55
import { ReferenceItem } from 'components/_editor-only/references-info/types';
66
import { translator } from 'translations';
77
import { adminOrigin } from 'utils/urls';

packages/nextjs/src/components/_editor-only/warnings/duplicate-ids-warning/DuplicateIdsWarning.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { useId } from 'react';
22
import { createPortal } from 'react-dom';
3-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
3+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
44
import { LenkeInline } from 'components/_common/lenke/lenkeInline/LenkeInline';
5-
import { EditorLinkWrapper } from 'components/_editor-only/editor-link-wrapper/EditorLinkWrapper';
5+
import { EditorLinkWrapper } from 'components/_editor-only/editorLinkWrapper/EditorLinkWrapper';
66

77
import style from './DuplicateIdsWarning.module.scss';
88

packages/nextjs/src/components/layouts/Region.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ContentProps } from 'types/content-props/_content-common';
33
import { BEM, classNames } from 'utils/classnames';
44
import { ComponentMapper } from 'components/ComponentMapper';
55
import { RegionProps } from 'types/component-props/layouts';
6-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
6+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
77

88
type Props = {
99
pageProps: ContentProps;

packages/nextjs/src/components/layouts/areapage-situations/AreapageSituationsLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { AreapageSituationsProps } from 'types/component-props/layouts/areapage-situations';
33
import { ContentProps } from 'types/content-props/_content-common';
4-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
4+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
55
import { LayoutContainer } from 'components/layouts/LayoutContainer';
66
import { Heading } from 'components/_common/headers/Heading';
77

packages/nextjs/src/components/layouts/flex-cols/ProductPageFlexColsLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Region from 'components/layouts/Region';
44
import { LayoutContainer } from 'components/layouts/LayoutContainer';
55
import { ProductPageFlexColsLayoutProps } from 'types/component-props/layouts/product-flex-cols';
66
import { Heading } from 'components/_common/headers/Heading';
7-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
7+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
88

99
import style from './FlexColsLayout.module.scss';
1010

packages/nextjs/src/components/layouts/frontpage-loggedin-section/FrontpageLoggedinSectionLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { FrontpageLoggedinSectionLayoutProps } from 'types/component-props/layouts/frontpage-loggedin-section';
33
import { ContentProps } from 'types/content-props/_content-common';
44
import { LayoutContainer } from 'components/layouts/LayoutContainer';
5-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
5+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
66
import { Heading } from 'components/_common/headers/Heading';
77
import Region from 'components/layouts/Region';
88
import { AuthDependantRender } from 'components/_common/authDependantRender/AuthDependantRender';

packages/nextjs/src/components/layouts/product-details-layout/ProductDetailsLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Fragment } from 'react';
22
import Region from 'components/layouts/Region';
33
import { LayoutContainer } from 'components/layouts/LayoutContainer';
4-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
4+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
55
import { ProductDetailType } from 'types/content-props/product-details';
66
import {
77
ProductDetailsPageProps,

packages/nextjs/src/components/layouts/section-with-header/SectionWithHeaderLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Region from 'components/layouts/Region';
77
import { Heading } from 'components/_common/headers/Heading';
88
import { XpImage } from 'components/_common/image/XpImage';
99
import { FilterBar } from 'components/_common/filter-bar/FilterBar';
10-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
10+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
1111
import { classNames } from 'utils/classnames';
1212

1313
import styleV1 from './SectionWithHeaderLayout.module.scss';

packages/nextjs/src/components/macros/form-details/MacroFormDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FormDetails } from 'components/_common/form-details/FormDetails';
2-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
2+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
33
import { MacroFormDetailsProps } from 'types/macro-props/form-details';
44

55
export const MacroFormDetails = ({ config }: MacroFormDetailsProps) => {

packages/nextjs/src/components/macros/global-value/MacroGlobalValue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { usePageContentProps } from 'store/pageContext';
33
import { MacroGlobalValueProps } from 'types/macro-props/global-value';
44
import { formatNumber, isStringOnlyNumber } from 'utils/math';
5-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
5+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
66

77
export const MacroGlobalValue = ({ config }: MacroGlobalValueProps) => {
88
const { language } = usePageContentProps();

packages/nextjs/src/components/macros/header-with-anchor/MacroHeaderWithAnchor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { headingToLevel, headingToSize } from 'types/typo-style';
33
import { MacroHeaderWithAnchorProps } from 'types/macro-props/header-with-anchor';
44
import { Heading } from 'components/_common/headers/Heading';
5-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
5+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
66

77
import style from './MacroheaderWithAnchor.module.scss';
88

packages/nextjs/src/components/macros/html-fragment/MacroHtmlFragment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { MacroHtmlFragmentProps } from 'types/macro-props/html-fragment';
33
import { ParsedHtml } from 'components/_common/parsedHtml/ParsedHtml';
4-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
4+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
55

66
export const MacroHtmlFragment = ({ config }: MacroHtmlFragmentProps) => {
77
if (!config?.html_fragment) {

packages/nextjs/src/components/macros/link-to-layer/MacroLinkToLayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { LenkeInline } from 'components/_common/lenke/lenkeInline/LenkeInline';
33
import { MacroLinkToLayerProps } from 'types/macro-props/link-to-layer';
4-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
4+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
55

66
export const MacroLinkToLayer = ({ config }: MacroLinkToLayerProps) => {
77
if (!config?.link_to_layer) {

packages/nextjs/src/components/macros/payout-dates/MacroPayoutDates.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { MacroPayoutDatesProps } from 'types/macro-props/payout-dates';
33
import { PayoutDates } from 'components/_common/payoutDates/PayoutDates';
4-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
4+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
55

66
export const MacroPayoutDates = ({ config }: MacroPayoutDatesProps) => {
77
const payoutDatesData = config?.payout_dates?.payoutDates?.data;

packages/nextjs/src/components/macros/product-card-micro/MacroProductCardMicro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { MacroProductCardMicroProps } from 'types/macro-props/product-card-micro';
33
import { MicroCards } from 'components/_common/card/MicroCard/MicroCards';
4-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
4+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
55

66
export const MacroProductCardMicro = ({ config }: MacroProductCardMicroProps) => {
77
if (!config?.product_card_micro) {

packages/nextjs/src/components/macros/product-card-mini/MacroProductCardMini.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { MacroProductCardMiniProps } from 'types/macro-props/product-card-mini';
33
import { MiniCardV2 } from 'components/_common/card/MiniCardV2/MiniCardV2';
44
import { getCardProps } from 'components/_common/card/card-utils';
55
import { usePageContentProps } from 'store/pageContext';
6-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
6+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
77

88
export const MacroProductCardMini = ({ config }: MacroProductCardMiniProps) => {
99
const pageContext = usePageContentProps();

packages/nextjs/src/components/macros/saksbehandlingstid/MacroSaksbehandlingstid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { MacroSaksbehandlingstidProps } from 'types/macro-props/saksbehandlingst
33
import { usePageContentProps } from 'store/pageContext';
44
import { Language, translator } from 'translations';
55
import { GlobalCaseTimeUnit } from 'types/content-props/global-values-props';
6-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
6+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
77

88
export const getCaseTimeString = (
99
value: number | string,

packages/nextjs/src/components/macros/tall/MacroTall.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { usePageContentProps } from 'store/pageContext';
33
import { formatNumber } from 'utils/math';
4-
import { EditorHelp } from 'components/_editor-only/editor-help/EditorHelp';
4+
import { EditorHelp } from 'components/_editor-only/editorHelp/EditorHelp';
55
import { MacroTallProps } from 'types/macro-props/tall';
66

77
export const MacroTall = ({ config }: MacroTallProps) => {

0 commit comments

Comments
 (0)