Skip to content

Commit

Permalink
fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray committed Mar 28, 2024
1 parent ec745c2 commit 7954f43
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export default meta;

// DECORATORS
function adaptiveBackground(story: StoryFn, { args, context }: StoryContext) {
const bgClass = args.background === 'bg-white' ? ` bg-dark` : '';
return html` <div class=${`p-2${bgClass}`}>${story(args, context)}</div> `;
const bgClass = args.background === 'bg-white' ? `p-2 bg-dark` : 'p-2';
return html`<div class=${bgClass}>${story(args, context)}</div>`;
}

// RENDERER
Expand Down

0 comments on commit 7954f43

Please sign in to comment.