Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
Remove extra data from helper file
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephCurley committed Dec 28, 2021
1 parent 2f1d220 commit 59d3c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/components/card/event-card/event-card-story-helpers.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { text, boolean } from "@storybook/addon-knobs";
import image16x9 from "../../../../.storybook/assets/images/greek-hall/16x9/index.js";

const defaultData = ({opened=false, inSitu=true}) => {
const isOpened = boolean("Is Opened", opened, "Display");
const defaultData = ({inSitu=true}) => {

return {
attendable: {
Expand All @@ -19,8 +18,6 @@ const defaultData = ({opened=false, inSitu=true}) => {
},
cardId: "abcd1234",
displayTime: text("Display Time", "5pm", "Data"),
initialClassNames: `attendable-card event-card js-marble-event-card ${isOpened ? "is-open" : ""}`,
isOpened,
inSitu: boolean("In Situ?", inSitu, "Display")
};
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/event-card/event-card.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {

const markup = (eventCardData) => html`
${eventCardData.inSitu ? html`<ol class="events-by-day">`: ""}
<li id="${eventCardData.cardId}" class="${eventCardData.initialClassNames}">
<li id="${eventCardData.cardId}" class="attendable-card event-card">
<div class="event-card__image-wrapper">
<a
href="${eventCardData.attendable.url}"
Expand Down

0 comments on commit 59d3c1d

Please sign in to comment.