From 208fdbbca801758643265aab39e0f8b6f18a87d7 Mon Sep 17 00:00:00 2001 From: Sam Bao Date: Fri, 10 May 2024 22:40:06 -0600 Subject: [PATCH] optimizing UI width on concert list control --- src/ConcertList.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ConcertList.js b/src/ConcertList.js index eb5b495..0cad9a9 100644 --- a/src/ConcertList.js +++ b/src/ConcertList.js @@ -24,7 +24,7 @@ class ConcertList extends React.Component { concerts: this.props.concerts } } - + componentDidUpdate(prevProps) { if (prevProps.concerts !== this.props.concerts) { this.setState({ @@ -55,8 +55,8 @@ class ConcertList extends React.Component { primary={`${concert.title}`} secondary={ - - + + @@ -92,9 +92,9 @@ class ConcertList extends React.Component { const hasConcerts = this.state.concerts.length > 0; return
- {hasConcerts &&

Upcoming Concerts:

} + {hasConcerts &&

Upcoming Concerts:

} + sx={{ width: { xs: "100%", sm: "100%", md: "100%", lg: "175%", xl: "150%" } }}> {renderConcertList}
;