fix sonar bugs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-24 12:18:55 +01:00
parent dd084369e9
commit f9864842b5
7 changed files with 20 additions and 17 deletions

View File

@@ -127,7 +127,7 @@ export const Text: Story = {
label: 'Title',
placeholder: 'Write a title',
},
render: (args) => {
render: function TextRender(args) {
const [value, setValue] = useState('Storybook integration');
return (
<InputField
@@ -148,7 +148,7 @@ export const PasswordWithToggle: Story = {
label: 'Password',
placeholder: 'Type a strong password',
},
render: (args) => {
render: function PasswordWithToggleRender(args) {
const [value, setValue] = useState('pa55word');
return (
<InputField
@@ -171,7 +171,7 @@ export const InlineWithIcon: Story = {
size: 'sm',
rightIcon: <MagnifyingGlassIcon className="h-4 w-4 ui-body-secondary" />,
},
render: (args) => {
render: function InlineWithIconRender(args) {
const [value, setValue] = useState('posts');
return (
<InputField
@@ -186,7 +186,8 @@ export const InlineWithIcon: Story = {
},
};
export const Error: Story = {
export const ErrorState: Story = {
name: 'Error',
args: {
type: 'email',
label: 'Email',
@@ -210,7 +211,7 @@ export const SizeMatrix: Story = {
label: 'Name',
placeholder: 'Enter value',
},
render: (args) => {
render: function SizeMatrixRender(args) {
const [value, setValue] = useState('Beatrice');
return (
<div className="grid grid-cols-1 gap-3">