Skip to content

Commit

Permalink
fix(toast): linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdt2 committed Apr 1, 2024
1 parent 6dacbcc commit 73072f8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions components/toast/stories/template.js
Expand Up @@ -13,19 +13,18 @@ export const Template = ({
rootClass = "spectrum-Toast",
message,
inlineButtonLabel,
width,
variant,
customClasses = [],
id,
...globals
}) => {

const iconName =
const iconName =
variant === "negative"
? "Alert"
: variant === "positive"
? "CheckmarkCircle"
: "Info";
? "CheckmarkCircle"
: "Info";

return html`
<div
Expand All @@ -42,7 +41,7 @@ export const Template = ({
iconName: ifDefined(iconName),
size: "m",
customClasses: [`${rootClass}-typeIcon`],
})
})
: ""}
<div class="${rootClass}-body">
<div class="${rootClass}-content">${message}</div>
Expand All @@ -54,7 +53,7 @@ export const Template = ({
staticColor: "white",
treatment: "outline",
label: inlineButtonLabel,
})
})
: ""}
</div>
<div class="${rootClass}-buttons">
Expand Down

0 comments on commit 73072f8

Please sign in to comment.