{"size": 3167, "ext": "js", "max_stars_repo_path": "src/components/Lists/Event/Event.stories.js", "max_stars_repo_name": "AliceTeeters/4thYearProjectApp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Lists/Event/Event.stories.js", "max_issues_repo_name": "AliceTeeters/4thYearProjectApp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/Lists/Event/Event.stories.js", "max_forks_repo_name": "AliceTeeters/4thYearProjectApp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 44.6056338028, "max_line_length": 152, "alphanum_fraction": 0.6179349542}
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs } from '@storybook/addon-knobs';

import EventList from './Event';


export const props = {
    events: [
        {
            venueName: "Whelans Pub",
            eventDateTime: "20 December 2020 19:00pm",
            eventDescription: "Need a band to play at the necessary date and time, preferably an indie band that plays music for all types of people.",
            venueLocation: "25 Wexford St, Saint Peter's, Dublin 2",
            eventImage: "https://www.dublintown.ie/wp-content/uploads/2012/03/whelans-1024x514.jpg"
        },
        {
            venueName: "Whelans Pub",
            eventDateTime: "20 December 2020 19:00pm",
            eventDescription: "Need a band to play at the necessary date and time, preferably an indie band that plays music for all types of people.",
            venueLocation: "25 Wexford St, Saint Peter's, Dublin 2",
            eventImage: "https://www.dublintown.ie/wp-content/uploads/2012/03/whelans-1024x514.jpg"
        },
        {
            venueName: "Whelans Pub",
            eventDateTime: "20 December 2020 19:00pm",
            eventDescription: "Need a band to play at the necessary date and time, preferably an indie band that plays music for all types of people.",
            venueLocation: "25 Wexford St, Saint Peter's, Dublin 2",
            eventImage: "https://www.dublintown.ie/wp-content/uploads/2012/03/whelans-1024x514.jpg"
        }
    ],
    applications: [
        {
            artistName: "Joan Jett",
            applicationHook: "Hi I'm the lead singer of the band Joan Jett and the Blackhearts. I feel that my band would be perfect for you're event.",
            applicationImg: "https://upload.wikimedia.org/wikipedia/commons/5/50/Joan_Jett_2013.jpg"
        },
        {
            artistName: "Joan Jett",
            applicationHook: "Hi I'm the lead singer of the band Joan Jett and the Blackhearts. I feel that my band would be perfect for you're event.",
            applicationImg: "https://upload.wikimedia.org/wikipedia/commons/5/50/Joan_Jett_2013.jpg"
        },
        {
            artistName: "Joan Jett",
            applicationHook: "Hi I'm the lead singer of the band Joan Jett and the Blackhearts. I feel that my band would be perfect for you're event.",
            applicationImg: "https://upload.wikimedia.org/wikipedia/commons/5/50/Joan_Jett_2013.jpg"
        },
        {
            artistName: "Joan Jett",
            applicationHook: "Hi I'm the lead singer of the band Joan Jett and the Blackhearts. I feel that my band would be perfect for you're event.",
            applicationImg: "https://upload.wikimedia.org/wikipedia/commons/5/50/Joan_Jett_2013.jpg"
        },
    ],
    createApplication: (values) => {
        setTimeout(() => {
            alert(JSON.stringify(values, null, 2));
        }, 400);
    },
    acceptApplication: () => { },
    user: {
        attributes: {'custom:user_type' : 'venue'}
    }
};

storiesOf('Lists/EventList', module)
    .addDecorator(withKnobs)
    .add('Default', () => (
        <EventList {...props} />
    ));

