Skip to content

Commit

Permalink
fix(ui-library): eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikdi committed Nov 8, 2023
1 parent ce38026 commit 418a9e3
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const defaultParams: BlrTextareaType = {
rows: 5,
shouldFocus: false,

placeholder: 'Type your message here ..',
placeholder: 'Type your message here ...',
required: false,
disabled: false,
readonly: false,
Expand All @@ -28,7 +28,6 @@ const defaultParams: BlrTextareaType = {
errorIcon: 'blrInfo',
hasError: false,
errorMessage: "OMG it's an error",
errorIcon: 'Blr360',

isResizeable: true,
};
Expand Down Expand Up @@ -131,6 +130,7 @@ export const Example1 = () => {
</div>
`;
};

Example1.parameters = {
backgrounds: {
default: 'light',
Expand Down Expand Up @@ -190,6 +190,7 @@ export const Example4 = () => {
</div>
`;
};

Example4.parameters = {
backgrounds: {
default: 'light',
Expand Down Expand Up @@ -257,14 +258,16 @@ export const Example2 = () =>
</div>
</div>
`;
(Example2.parameters = {

Example2.parameters = {
backgrounds: {
default: 'dark',
},
}),
(Example2.storyName = 'Textarea Examples Dark Theme');
};

Example2.storyName = 'Textarea Examples Dark Theme';

export const InteractivePlaceholder = ({ placeholder }) =>
export const InteractivePlaceholder = ({ placeholder }: { placeholder: string }) =>
html`
${fontStyle}
${BlrTextareaRenderFunction({
Expand All @@ -273,7 +276,7 @@ export const InteractivePlaceholder = ({ placeholder }) =>
value: '',
})}
`;
InteractivePlaceholder.storyName = 'Interactive Placeholder';

InteractivePlaceholder.args = {
placeholder: defaultParams.placeholder,
};

0 comments on commit 418a9e3

Please sign in to comment.