mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-28 02:50:45 +00:00
feat: create story for port input with examples
This commit is contained in:
parent
bbf62ce59d
commit
0ad30aa09a
31
src/pages/PairDevice/ConnectViaIP/PortInput.stories.tsx
Normal file
31
src/pages/PairDevice/ConnectViaIP/PortInput.stories.tsx
Normal file
@ -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<typeof PortInput>
|
||||||
|
|
||||||
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
|
export const VC: Story = {
|
||||||
|
args: {
|
||||||
|
port: '9000',
|
||||||
|
portType: 'VC',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
export const Beacon: Story = {
|
||||||
|
args: {
|
||||||
|
port: '5052',
|
||||||
|
portType: 'Beacon',
|
||||||
|
},
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user