From 73a9790c9e5ca6713265494a305f7ab43135aa27 Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Thu, 20 Jun 2024 20:54:19 +0800 Subject: [PATCH] pkp/pkp-lib#i10033 Implement code review suggestions --- .../DropdownActions/DropdownActions.mdx | 2 +- .../DropdownActions.stories.js | 88 ++++--------------- .../DropdownActions/DropdownActions.vue | 64 +++++--------- 3 files changed, 42 insertions(+), 112 deletions(-) diff --git a/src/components/DropdownActions/DropdownActions.mdx b/src/components/DropdownActions/DropdownActions.mdx index 5419e0d64..c4db42b59 100644 --- a/src/components/DropdownActions/DropdownActions.mdx +++ b/src/components/DropdownActions/DropdownActions.mdx @@ -1,4 +1,4 @@ -import {Primary, Controls, Stories, Meta, Story} from '@storybook/blocks'; +import {Primary, Controls, Stories, Meta, Description} from '@storybook/blocks'; import DropdownActions from './DropdownActions.vue'; import * as DropdownActionsStories from './DropdownActions.stories.js'; diff --git a/src/components/DropdownActions/DropdownActions.stories.js b/src/components/DropdownActions/DropdownActions.stories.js index 941c02a5c..6a204fc52 100644 --- a/src/components/DropdownActions/DropdownActions.stories.js +++ b/src/components/DropdownActions/DropdownActions.stories.js @@ -11,81 +11,38 @@ export default { }, template: '', }), - argTypes: { - actions: { - description: - 'An array of action objects. Each object should contain `label` (string), `url` (string), an optional `icon` (string) and `isWarnable` (boolean) if the button needs the "warning" button styling from `