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

Updates to Homepage #22

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/src/components/HorizontalCard/HorizontalCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const HorizontalCard = (props) => {

const { data, error } = props;

const time = Moment(props.date).format('h:mm a')
const time = Moment(props.date).format('MMMM DD, YYYY')

return (
<Card className={props.className}>
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const IndexPage = props => {

const events = (data.allSanityEvents.nodes || {})

const feature_event = (data.sanityEvents || {})
let feature_event = (data.sanityEvents ? data.sanityEvents : events[0]) //if there is no featured event, then set the closest event to be featured

let eventsNoFeature = []; {/* Create empty array for events to filter into */}

Expand All @@ -101,8 +101,8 @@ const IndexPage = props => {
}
)
eventsNoFeature = eventsNoFeature.slice(0, 3); {/* Slice the list to only contain 3 elements max */}



const courses = (data.allSanityCourses.nodes || {})

if (errors) {
Expand Down