Skip to content

Commit

Permalink
fix: revert jsdoc and linter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahdieh Abdollahian authored and majidsajadi committed May 29, 2024
1 parent f15d4dc commit 1be4a21
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions src/spinner/spinner.stories.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
import { html, TemplateResult } from "lit";
import "./index.js";
import { html, TemplateResult } from 'lit';
import './index.js';

const spinnerVariants: string[] = ["primary", "inverse"];
const spinnerVariants: string[] = ['primary', 'inverse'];

export default {
title: "Spinner",
component: "tap-spinner",
title: 'Spinner',
component: 'tap-spinner',
argTypes: {
variant: {
description: "Spinner variant",
description: 'Spinner variant',
options: spinnerVariants,
control: {type: "select"},
control: { type: 'select' },
},
},
decorators: [
(Story: () => TemplateResult) => (
html`
<div style="background: #0000001f; height: 100vh; margin: -1rem;">
${Story()}
</div>`
),
(Story: () => TemplateResult) =>
html` <div style="background: #0000001f; height: 100vh; margin: -1rem;">
${Story()}
</div>`,
],
};

Expand All @@ -30,12 +28,10 @@ interface Story<T> {
}

interface ArgTypes {
variant:
| "primary"
| "inverse",
variant: 'primary' | 'inverse';
}

const Template: Story<ArgTypes> = ({variant}: ArgTypes) => html`
const Template: Story<ArgTypes> = ({ variant }: ArgTypes) => html`
<tap-spinner variant=${variant}></tap-spinner>
`;

Expand Down

0 comments on commit 1be4a21

Please sign in to comment.