From 1ed5fc80b9da5c3c1e5d3bc88b82d3ce5e37f140 Mon Sep 17 00:00:00 2001 From: robertSt7 Date: Wed, 28 Feb 2024 12:10:05 +0100 Subject: [PATCH] Fix: lint --- .../dropdown-menu/dropdown-menu.stories.tsx | 61 +++++++-------- .../dropdown-menu/dropdown-menu.styles.tsx | 6 +- .../dropdown-menu/dropdown-menu.tsx | 78 +++++++++---------- .../pimcore-image/pimcore-image.stories.tsx | 1 - .../pimcore-image/pimcore-image.styles.tsx | 2 +- .../pimcore-image/pimcore-image.tsx | 12 +-- .../preview-card/preview-card.stories.tsx | 6 +- .../preview-card/preview-card.styles.tsx | 26 +++---- .../components/preview-card/preview-card.tsx | 36 ++++----- 9 files changed, 112 insertions(+), 116 deletions(-) diff --git a/assets/js/src/components/dropdown-menu/dropdown-menu.stories.tsx b/assets/js/src/components/dropdown-menu/dropdown-menu.stories.tsx index a6fb96c9d..9f8d0ff5b 100644 --- a/assets/js/src/components/dropdown-menu/dropdown-menu.stories.tsx +++ b/assets/js/src/components/dropdown-menu/dropdown-menu.stories.tsx @@ -1,10 +1,9 @@ import { type Meta } from '@storybook/react' -import {DropdownMenu as DropdownMenuComponent, DropdownMenuItemProps} from './dropdown-menu' -import {Button} from "antd"; -import {Icon} from "@Pimcore/components/icon/icon"; -import React from "react"; -import i18n from "@Pimcore/app/i18n"; -import {useStyle} from "@Pimcore/components/dropdown-menu/dropdown-menu.styles"; +import { DropdownMenu as DropdownMenuComponent, type DropdownMenuItemProps } from './dropdown-menu' +import { Button } from 'antd' +import { Icon } from '@Pimcore/components/icon/icon' +import React from 'react' +import i18n from '@Pimcore/app/i18n' const config: Meta = { title: 'Pimcore studio/UI/DropdownMenu', @@ -17,8 +16,6 @@ const config: Meta = { export default config -const styles = useStyle //Doesn't work - it's only for demonstration - const children =