Skip to content

Commit 48c8e06

Browse files
committed
fix: type of load more buttom theme in configuration
HCRC-178
1 parent 9852b12 commit 48c8e06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/configProvider/configContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type React from 'react';
22
import { createContext } from 'react';
33
import type { ApolloClient, NormalizedCacheObject } from '@apollo/client';
4-
import type { ButtonTheme, ButtonVariant } from 'hds-react';
4+
import type { ButtonPresetTheme, ButtonTheme, ButtonVariant } from 'hds-react';
55

66
import type {
77
ArticleType,
@@ -80,7 +80,7 @@ export type Config = {
8080
*/
8181
customCopy?: {
8282
loadMoreButtonVariant?: Exclude<ButtonVariant, 'supplementary'>;
83-
loadMoreButtonTheme?: ButtonTheme;
83+
loadMoreButtonTheme?: ButtonTheme | ButtonPresetTheme;
8484
};
8585
/**
8686
* React component replacements for defined html elements.

0 commit comments

Comments
 (0)