Skip to content

Commit

Permalink
fix: prettier executed in component story
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmarquesini-tlf committed Jul 19, 2023
1 parent 6b3511d commit ebbb6ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/__stories__/media-card-story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import ResponsiveLayout from '../responsive-layout';
import {Placeholder} from '../placeholder';
import tennisImg from './images/tennis.jpg';
import confettiVideo from './videos/confetti.mp4';
import avatarImg from './images/avatar.jpg'
import avatarImg from './images/avatar.jpg';

import type {TagType} from '..';

Expand Down Expand Up @@ -55,17 +55,17 @@ export const Default: StoryComponent<Args> = ({
closable,
withTopAction,
media,
asset
asset,
}) => {
let icon;
if(asset === 'circle + icon') {
if (asset === 'circle + icon') {
icon = (
<Circle size={40} backgroundColor={skinVars.colors.brandLow}>
<IconMobileDeviceRegular color={skinVars.colors.brand} />
</Circle>
);
} else if(asset === 'circle + image'){
icon = <Circle size={40} backgroundImage={avatarImg} />
} else if (asset === 'circle + image') {
icon = <Circle size={40} backgroundImage={avatarImg} />;
}

const button = actions.includes('button') ? (
Expand Down Expand Up @@ -141,7 +141,7 @@ Default.args = {
Default.argTypes = {
asset: {
options: ['circle + icon', 'circle + image', 'none'],
control: {type: 'select'}
control: {type: 'select'},
},
media: {
options: ['image', 'video'],
Expand Down

0 comments on commit ebbb6ac

Please sign in to comment.