Skip to content

Commit

Permalink
(hds-2451) Export graphQLModule hooks
Browse files Browse the repository at this point in the history
Changed the login stories to use imports from the index file to make sure all are exported properly.
  • Loading branch information
NikoHelle committed Oct 8, 2024
1 parent 5935300 commit e7aa497
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Changes that are not related to specific components
#### Fixed

- [Logo] Fixed data-testid attribute not being set with native props
- [Login] Fixed GraphQLModule exports

### Core

Expand Down
5 changes: 3 additions & 2 deletions packages/react/src/components/login/Login.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ import {
sessionPollerErrors,
LoginProvider,
LoginProviderProps,
useGraphQL,
useGraphQLModule,
createGraphQLModule,
} from './index';
import { Button } from '../button/Button';
import { Header } from '../header/Header';
import { Notification } from '../notification/Notification';
import { Tabs } from '../tabs/Tabs';
import { Logo, logoFi } from '../logo';
import { createGraphQLModule } from './graphQLModule/graphQLModule';
import { MyProfileQuery } from './graphQLModule/demoData/MyProfileQuery';
import { useGraphQL, useGraphQLModule } from './graphQLModule/hooks';
import { LoadingSpinner } from '../loadingSpinner';

type StoryArgs = {
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/login/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export * from './client/hooks';
export * from './beacon/hooks';
export * from './apiTokensClient/hooks';
export * from './sessionPoller/hooks';
export * from './graphQLModule/hooks';

// vanilla js code
export * from './index.vanilla-js';

0 comments on commit e7aa497

Please sign in to comment.