Skip to content

Commit

Permalink
Merge pull request #210 from performant-software/feature/all_hands
Browse files Browse the repository at this point in the history
Removing withA11y decorator from stories
  • Loading branch information
dleadbetter authored Sep 27, 2023
2 parents 4103872 + 081fcdc commit f65a414
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

import React, { useState } from 'react';
import { action } from '@storybook/addon-actions';
import { withA11y } from '@storybook/addon-a11y';
import { withKnobs } from '@storybook/addon-knobs';
import ReferenceCodeDropdown from '../../../controlled-vocabulary/src/components/ReferenceCodeDropdown';

export default {
title: 'Components/Controlled Vocabulary/ReferenceCodeDropdown',
decorators: [withA11y, withKnobs]
decorators: [withKnobs]
};

export const Default = () => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @flow

import React from 'react';
import { withA11y } from '@storybook/addon-a11y';
import { withKnobs } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import { Form } from 'semantic-ui-react';
Expand All @@ -10,7 +9,7 @@ import useDragDrop from '../../../shared/src/utils/DragDrop';

export default {
title: 'Components/Controlled Vocabulary/ReferenceCodeFormDropdown',
decorators: [withA11y, withKnobs]
decorators: [withKnobs]
};

export const Default = useDragDrop(() => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// @flow

import React from 'react';
import { withA11y } from '@storybook/addon-a11y';
import { withKnobs } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import ReferenceCodeFormLabel from '../../../controlled-vocabulary/src/components/ReferenceCodeFormLabel';

export default {
title: 'Components/Controlled Vocabulary/ReferenceCodeFormLabel',
decorators: [withA11y, withKnobs]
decorators: [withKnobs]
};

export const Default = () => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @flow

import React from 'react';
import { withA11y } from '@storybook/addon-a11y';
import { action } from '@storybook/addon-actions';
import { withKnobs, boolean, text } from '@storybook/addon-knobs';
import { Form, Modal } from 'semantic-ui-react';
Expand All @@ -12,7 +11,7 @@ import { type EditContainerProps } from '../../../shared/src/components/EditCont

export default {
title: 'Components/Semantic UI/AssociatedDropdown',
decorators: [withA11y, withKnobs]
decorators: [withKnobs]
};

const items = [{
Expand Down
3 changes: 1 addition & 2 deletions packages/storybook/src/semantic-ui/LazyIIIF.stories.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// @flow

import React from 'react';
import { withA11y } from '@storybook/addon-a11y';
import { withKnobs } from '@storybook/addon-knobs';
import LazyIIIF from '../../../semantic-ui/src/components/LazyIIIF';
import image from '../assets/test-image.jpg';
import manifest from '../assets/manifest.json';

export default {
title: 'Components/Semantic UI/LazyIIIF',
decorators: [withA11y, withKnobs]
decorators: [withKnobs]
};

export const Default = () => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// @flow

import React, { useState } from 'react';
import { withA11y } from '@storybook/addon-a11y';
import { withKnobs } from '@storybook/addon-knobs';
import { Form } from 'semantic-ui-react';
import UserDefinedFieldsForm from '../../../user-defined-fields/src/components/UserDefinedFieldsForm';

export default {
title: 'Components/User Defined Fields/UserDefinedFieldsForm',
decorators: [withA11y, withKnobs]
decorators: [withKnobs]
};

export const Default = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// @flow

import React, { useCallback, useState } from 'react';
import { withA11y } from '@storybook/addon-a11y';
import { withKnobs } from '@storybook/addon-knobs';
import _ from 'underscore';
import UserDefinedFieldsList from '../../../user-defined-fields/src/components/UserDefinedFieldsList';
import useDragDrop from '../../../shared/src/utils/DragDrop';

export default {
title: 'Components/User Defined Fields/UserDefinedFieldsList',
decorators: [withA11y, withKnobs]
decorators: [withKnobs]
};

export const Default = useDragDrop(() => {
Expand Down

0 comments on commit f65a414

Please sign in to comment.