From e414a178d6aecf5c656e8fa6b8c43cf152af535f Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Fri, 9 Apr 2021 15:33:49 +0000 Subject: [PATCH] Fixed some minor bugs that caused console errors, changed a>li to li>a to accomodate best practises --- pages/[user].tsx | 12 ++++++------ pages/[user]/[type].tsx | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/[user].tsx b/pages/[user].tsx index 4986d118e3..dcf6413b5c 100644 --- a/pages/[user].tsx +++ b/pages/[user].tsx @@ -4,15 +4,15 @@ import prisma from '../lib/prisma' export default function User(props) { const eventTypes = props.user.eventTypes.map(type => - - -
  • +
  • + +

    {type.title}

    {type.description}

    -
  • - - + + + ); return (
    diff --git a/pages/[user]/[type].tsx b/pages/[user]/[type].tsx index f9c1917f0f..f7cfddb415 100644 --- a/pages/[user]/[type].tsx +++ b/pages/[user]/[type].tsx @@ -35,7 +35,7 @@ export default function Type(props) { } const calendar = days.map((day) => - ); @@ -84,7 +84,7 @@ export default function Type(props) { // Display available times const availableTimes = times.map((time) => -
    +
    {dayjs(time).format("hh:mma")} @@ -133,12 +133,12 @@ export default function Type(props) { {calendar}
    -
    + {selectedDate &&
    {dayjs(selectedDate).format("dddd DD MMMM YYYY")}
    {!loading ? availableTimes :
    } -
    +
    }