diff --git a/src/components/General/RightSideBar/ValidatorsTabs/SearchInput.stories.tsx b/src/components/General/RightSideBar/ValidatorsTabs/SearchInput.stories.tsx index b8960d0e..ef25a026 100644 --- a/src/components/General/RightSideBar/ValidatorsTabs/SearchInput.stories.tsx +++ b/src/components/General/RightSideBar/ValidatorsTabs/SearchInput.stories.tsx @@ -1,5 +1,5 @@ +import { useState } from 'react' import type { Meta, StoryObj } from '@storybook/react' - import SearchInput from './SearchInput' const meta = { @@ -14,6 +14,12 @@ const meta = { export default meta type Story = StoryObj -export const Default: Story = { - args: { value: 'Search value' }, +export const Default: Story = (args: { value: string }) => { + const [searchValue, setSearchValue] = useState(args.value) + + return +} + +Default.args = { + value: '', } diff --git a/src/components/General/RightSideBar/ValidatorsTabs/ValidatorListItem.tsx b/src/components/General/RightSideBar/ValidatorsTabs/ValidatorListItem.tsx index 99c300cf..e73c63ae 100644 --- a/src/components/General/RightSideBar/ValidatorsTabs/ValidatorListItem.tsx +++ b/src/components/General/RightSideBar/ValidatorsTabs/ValidatorListItem.tsx @@ -26,8 +26,6 @@ const ValidatorListItem = ({ const handleMouseLeave = () => setIsHovered(false) const handleClick = () => setIsSelected(!isSelected) - const backgroundColor = isSelected || isHovered ? 'rgba(42, 74, 245, 0.05)' : 'transparent' - return (