mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-01 13:47:27 +02:00
fix: formatting
This commit is contained in:
parent
a45d09cf2b
commit
839a1d0104
@ -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>
|
||||
);
|
||||
};
|
||||
|
@ -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(
|
||||
|
@ -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>
|
||||
);
|
||||
|
||||
|
@ -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} />
|
||||
|
@ -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>;
|
||||
};
|
||||
|
@ -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()}>
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user