From d3805dcaa173388754364a1f52e5ef72ed3dea56 Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Thu, 24 Jun 2021 13:47:34 -0400 Subject: [PATCH] change labels for availability --- src/components/NewUI/Availability.tsx | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/src/components/NewUI/Availability.tsx b/src/components/NewUI/Availability.tsx index 7ade014..e7fca00 100644 --- a/src/components/NewUI/Availability.tsx +++ b/src/components/NewUI/Availability.tsx @@ -1,22 +1,17 @@ import { CSSProperties } from '@material-ui/styles'; import { MouseEventHandler, useCallback, useState } from 'react'; -export type AvailabilityKind = - | 'going/can-bring-someone' - | 'going/cannot-bring-someone' - | 'interested' - | 'not-interested'; +export type AvailabilityKind = 'going' | 'interested' | 'not-interested'; const availabilityNames: Record = { - 'going/can-bring-someone': 'Going; Can bring someone', - 'going/cannot-bring-someone': "Going; Can't bring someone", + going: 'Going', interested: 'Interested', 'not-interested': 'Not interested', }; const optionStyle: CSSProperties = { height: '3rem', - backgroundColor: 'white', + backgroundColor: '#e0e0e0', display: 'flex', flexDirection: 'row', justifyContent: 'center', @@ -26,6 +21,7 @@ const optionStyle: CSSProperties = { userSelect: 'none', position: 'relative', fontWeight: 'normal', + textTransform: 'uppercase', }; const selectedOptionStyle = { @@ -79,7 +75,6 @@ export default function Availability({ display: 'flex', flexDirection: 'column', borderRadius: '0.5rem', - border: '1px solid lightgrey', overflow: 'hidden', marginTop: '1rem', marginBottom: '1rem', @@ -89,16 +84,7 @@ export default function Availability({ > {focused ? ( <> -