From 0ad30aa09a14495494cafa00afdf1be9199ba8e3 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Fri, 5 Jan 2024 14:41:50 +0200 Subject: [PATCH] feat: create story for port input with examples --- .../ConnectViaIP/PortInput.stories.tsx | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/pages/PairDevice/ConnectViaIP/PortInput.stories.tsx diff --git a/src/pages/PairDevice/ConnectViaIP/PortInput.stories.tsx b/src/pages/PairDevice/ConnectViaIP/PortInput.stories.tsx new file mode 100644 index 00000000..1d6dd830 --- /dev/null +++ b/src/pages/PairDevice/ConnectViaIP/PortInput.stories.tsx @@ -0,0 +1,31 @@ +import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' + +import PortInput from './PortInput' + +const meta = { + title: 'Pair Device/PortInput', + component: PortInput, + parameters: { + layout: 'centered', + }, + tags: ['autodocs'], + decorators: [withRouter], +} satisfies Meta + +export default meta +type Story = StoryObj + +export const VC: Story = { + args: { + port: '9000', + portType: 'VC', + }, +} + +export const Beacon: Story = { + args: { + port: '5052', + portType: 'Beacon', + }, +}