Skip to content

Commit

Permalink
Style(web-react): Reformat codebase using Prettier v3
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed May 15, 2024
1 parent 869d2a5 commit eb7ce89
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
11 changes: 5 additions & 6 deletions packages/web-react/tests/testUtils/withHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React, { ElementType } from 'react';
import { Header } from '../../src/components/Header';

export const withHeader = (Component: ElementType) => (props: unknown) =>
(
<Header id="test">
<Component {...(props as object)} />
</Header>
);
export const withHeader = (Component: ElementType) => (props: unknown) => (
<Header id="test">
<Component {...(props as object)} />
</Header>
);
11 changes: 5 additions & 6 deletions packages/web-react/tests/testUtils/withHeaderContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { HeaderDialogProvider, HeaderDialogContextProps } from '../../src';

export const withHeaderContext =
(Component: ElementType, value = { headerClass: 'Header' } as unknown as HeaderDialogContextProps) =>
(props: unknown) =>
(
<HeaderDialogProvider value={value}>
<Component {...(props as object)} />
</HeaderDialogProvider>
);
(props: unknown) => (
<HeaderDialogProvider value={value}>
<Component {...(props as object)} />
</HeaderDialogProvider>
);
11 changes: 5 additions & 6 deletions packages/web-react/tests/testUtils/withTabsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { TabsContextType, TabsProvider } from '../../src/components/Tabs/TabCont

export const withTabsContext =
(Component: ElementType, value = { selectedTabId: 0, selectTab: jest.fn() } as TabsContextType) =>
(props: unknown) =>
(
<TabsProvider value={value}>
<Component {...(props as object)} />
</TabsProvider>
);
(props: unknown) => (
<TabsProvider value={value}>
<Component {...(props as object)} />
</TabsProvider>
);

0 comments on commit eb7ce89

Please sign in to comment.