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 (
<PageContent>
Addons where renamed to <Link to="/integrations">/integrations</Link>
Addons where renamed to{' '}
<Link to="/integrations">/integrations</Link>
</PageContent>
);
};

View File

@ -35,7 +35,9 @@ describe('AddonMultiSelector', () => {
});
it('renders with default state', () => {
render(<IntegrationMultiSelector {...mockProps} selectedItems={['*']} />);
render(
<IntegrationMultiSelector {...mockProps} selectedItems={['*']} />
);
const checkbox = screen.getByLabelText(
/all current and future projects/i
@ -49,7 +51,9 @@ describe('AddonMultiSelector', () => {
it('can toggle "ALL" checkbox', async () => {
const user = userEvent.setup();
render(<IntegrationMultiSelector {...mockProps} selectedItems={['*']} />);
render(
<IntegrationMultiSelector {...mockProps} selectedItems={['*']} />
);
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', () => {
render(
<IntegrationMultiSelector {...mockProps} selectedItems={['project1']} />
<IntegrationMultiSelector
{...mockProps}
selectedItems={['project1']}
/>
);
const checkbox = screen.getByLabelText(

View File

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

View File

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

View File

@ -1,11 +1,8 @@
import { PageContent } from "component/common/PageContent/PageContent"
import { VFC } from "react"
import { PageContent } from 'component/common/PageContent/PageContent';
import { VFC } from 'react';
interface 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 (
<PageContent
isLoading={loading}
header={
<PageHeader
title={`Configured addons (${rows.length})`}
/>
}
header={<PageHeader title={`Configured addons (${rows.length})`} />}
sx={theme => ({ marginBottom: theme.spacing(2) })}
>
<Table {...getTableProps()}>

View File

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