Skip to content

Commit

Permalink
Update src/routes/community/EventCard.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann authored Jun 5, 2024
1 parent 36d8f05 commit 1d5e708
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/routes/community/EventCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@
export let description: $$Props['description'];
export let buttonText: $$Props['buttonText'];
export let headingLevel: $$Props['headingLevel'] = 5;
$: headingTag = `h${headingLevel}`;
let hasPast: boolean = (new Date()) > (new Date(date));
console.log(hasPast);
let dateString: string = new Date(date).toLocaleDateString('en-US', {
const hasPast: boolean = (new Date()) > (new Date(date));
const dateString: string = new Date(date).toLocaleDateString('en-US', {
month: 'long',
day: 'numeric',
year: 'numeric',
});
$: headingTag = `h${headingLevel}`;
</script>

<a class="web-grid-articles-item" {href} target="_blank" rel="noopener noreferrer">
Expand Down

0 comments on commit 1d5e708

Please sign in to comment.