Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle events without Images #94

Open
KevinWu098 opened this issue Oct 18, 2023 · 0 comments
Open

fix: Handle events without Images #94

KevinWu098 opened this issue Oct 18, 2023 · 0 comments

Comments

@KevinWu098
Copy link
Member

KevinWu098 commented Oct 18, 2023

Currently, events are formatted like this:

        {
            "src":"/assets/img/events/internpanel.jpg",
            "title":"Internship Panel",
            "time":"Wednesday, October 18th, 2023",
            "location": "DBH 6011 7- 8 PM",
            "desc": "Looking for advice in applying for internships this application season ❓ Come meet our panelists and receive insight/listen to personal experiences about the application process at our ICSSC Internship Pane!"
        },

Every other field can be empty, but Next's Image element requires that an image, passed as src be given to it. We could handle this in a handful of ways, but a simple Image Not Found placeholder (possibly with a cute Anteater) would do.

Something like: src={src ? src : imgNotFound}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant