From e0922259ac4423fd70498c9f01c1b1ae23ba187b Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 26 Apr 2022 01:45:22 +0000 Subject: [PATCH] Simpliy class list --- webclient/src/Classes.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/webclient/src/Classes.js b/webclient/src/Classes.js index 57d702a..13aff8c 100644 --- a/webclient/src/Classes.js +++ b/webclient/src/Classes.js @@ -86,7 +86,7 @@ function NewClassTable(props) { <>
{sortedClasses.map(x => - +
{x.course.name} @@ -99,12 +99,10 @@ function NewClassTable(props) { )} - Date - Time Cost Students @@ -115,15 +113,12 @@ function NewClassTable(props) { -  {moment.utc(x.datetime).tz('America/Edmonton').format('MMM Do')} + {moment.utc(x.datetime).tz('America/Edmonton').format(' MMM Do')} + {' - '}{x.is_cancelled ? 'Cancelled' : moment.utc(x.datetime).tz('America/Edmonton').format('LT')} - - {x.is_cancelled ? 'Cancelled' : moment.utc(x.datetime).tz('America/Edmonton').format('LT')} - - - {x.cost === '0.00' ? 'Free' : '$'+x.cost} + {x.cost === '0.00' ? 'Free' : '$'+x.cost.slice(0,2)} {!!x.max_students ? @@ -208,8 +203,6 @@ export function Classes(props) { const byDate = (a, b) => a.datetime > b.datetime ? 1 : -1; const byTag = (x) => tagFilter ? x.course_data.tags.includes(tagFilter) : true; - console.log(tagFilter); - return (
Class List