1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-01 13:47:27 +02:00

fix: formatting

This commit is contained in:
Tymoteusz Czech 2023-08-18 13:50:35 +02:00
parent a45d09cf2b
commit 839a1d0104
No known key found for this signature in database
GPG Key ID: 133555230D88D75F
7 changed files with 24 additions and 25 deletions

View File

@ -12,7 +12,8 @@ export const AddonRedirect = () => {
return ( return (
<PageContent> <PageContent>
Addons where renamed to <Link to="/integrations">/integrations</Link> Addons where renamed to{' '}
<Link to="/integrations">/integrations</Link>
</PageContent> </PageContent>
); );
}; };

View File

@ -35,7 +35,9 @@ describe('AddonMultiSelector', () => {
}); });
it('renders with default state', () => { it('renders with default state', () => {
render(<IntegrationMultiSelector {...mockProps} selectedItems={['*']} />); render(
<IntegrationMultiSelector {...mockProps} selectedItems={['*']} />
);
const checkbox = screen.getByLabelText( const checkbox = screen.getByLabelText(
/all current and future projects/i /all current and future projects/i
@ -49,7 +51,9 @@ describe('AddonMultiSelector', () => {
it('can toggle "ALL" checkbox', async () => { it('can toggle "ALL" checkbox', async () => {
const user = userEvent.setup(); const user = userEvent.setup();
render(<IntegrationMultiSelector {...mockProps} selectedItems={['*']} />); render(
<IntegrationMultiSelector {...mockProps} selectedItems={['*']} />
);
await user.click(screen.getByTestId('select-all-projects')); await user.click(screen.getByTestId('select-all-projects'));
@ -70,7 +74,10 @@ describe('AddonMultiSelector', () => {
it('renders with autocomplete enabled if default value is not a wildcard', () => { it('renders with autocomplete enabled if default value is not a wildcard', () => {
render( render(
<IntegrationMultiSelector {...mockProps} selectedItems={['project1']} /> <IntegrationMultiSelector
{...mockProps}
selectedItems={['project1']}
/>
); );
const checkbox = screen.getByLabelText( const checkbox = screen.getByLabelText(

View File

@ -138,9 +138,9 @@ export const IntegrationMultiSelector: VFC<IIntegrationMultiSelectorProps> = ({
const DefaultHelpText = () => ( const DefaultHelpText = () => (
<StyledHelpText> <StyledHelpText>
Selecting {entityName}(s) here will filter events so that your integration Selecting {entityName}(s) here will filter events so that your
will only receive events that are tagged with one of your{' '} integration will only receive events that are tagged with one of
{entityName}s. your {entityName}s.
</StyledHelpText> </StyledHelpText>
); );

View File

@ -139,11 +139,7 @@ export const AvailableAddons = ({
return ( return (
<PageContent <PageContent
isLoading={loading} isLoading={loading}
header={ header={<PageHeader title={`Available addons (${rows.length})`} />}
<PageHeader
title={`Available addons (${rows.length})`}
/>
}
> >
<Table {...getTableProps()}> <Table {...getTableProps()}>
<SortableTableHeader headerGroups={headerGroups} /> <SortableTableHeader headerGroups={headerGroups} />

View File

@ -1,11 +1,8 @@
import { PageContent } from "component/common/PageContent/PageContent" import { PageContent } from 'component/common/PageContent/PageContent';
import { VFC } from "react" import { VFC } from 'react';
interface IAvailableIntegrationsProps {} interface IAvailableIntegrationsProps {}
export const AvailableIntegrations: VFC<IAvailableIntegrationsProps> = () => { export const AvailableIntegrations: VFC<IAvailableIntegrationsProps> = () => {
return <PageContent>Available integrations</PageContent>;
return ( };
<PageContent>Available integrations</PageContent>
)
}

View File

@ -180,11 +180,7 @@ export const ConfiguredAddons = () => {
return ( return (
<PageContent <PageContent
isLoading={loading} isLoading={loading}
header={ header={<PageHeader title={`Configured addons (${rows.length})`} />}
<PageHeader
title={`Configured addons (${rows.length})`}
/>
}
sx={theme => ({ marginBottom: theme.spacing(2) })} sx={theme => ({ marginBottom: theme.spacing(2) })}
> >
<Table {...getTableProps()}> <Table {...getTableProps()}>

View File

@ -20,7 +20,9 @@ interface IIntegrationNameCellProps {
/** /**
* @deprecated Remove when integrationsRework flag is removed * @deprecated Remove when integrationsRework flag is removed
*/ */
export const IntegrationNameCell = ({ provider }: IIntegrationNameCellProps) => ( export const IntegrationNameCell = ({
provider,
}: IIntegrationNameCellProps) => (
<HighlightCell <HighlightCell
value={provider.displayName} value={provider.displayName}
subtitle={provider.description} subtitle={provider.description}