Skip to content

Commit 5ead04c

Browse files
authored
Merge pull request #73 from m2mathew/dev
2.3.1
2 parents 6982080 + b935da3 commit 5ead04c

File tree

6 files changed

+3688
-6619
lines changed

6 files changed

+3688
-6619
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tmac-website",
33
"description": "Website for the Texas Music Administrators Conference",
4-
"version": "2.3.0",
4+
"version": "2.3.1",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/m2mathew/tmac-website"
@@ -70,8 +70,8 @@
7070
"yup": "0.32.9"
7171
},
7272
"engines": {
73-
"node": "^12.22.1",
74-
"npm": "^6.14.10"
73+
"node": "^14.x",
74+
"npm": "^6.14.x"
7575
},
7676
"devDependencies": {
7777
"@babel/core": "^7.14.6",

src/components/shared/LoadingContainer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// External Dependencies
2-
import CircularProgress from '@material-ui/core/CircularProgress';
2+
import { CircularProgress } from '@material-ui/core';
3+
import { makeStyles } from '@material-ui/styles';
34
import PropTypes from 'prop-types';
45
import React from 'react';
5-
import { makeStyles } from '@material-ui/styles';
66

77
// Local Variables
88
const propTypes = {

src/pages/sponsors/index.tsx

+23-20
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// External Dependencies
22
import {
33
Box,
4-
// Typography,
4+
CircularProgress,
55
} from '@material-ui/core';
66
import { Helmet } from 'react-helmet';
77
import React, {
@@ -30,8 +30,6 @@ const Sponsors: FC<Props> = ({ location }) => {
3030
const [sponsorData, setSponsorData] = useState<SponsorFormValues[] | null>(null);
3131
const previousSponsorData = usePrevious(sponsorData);
3232

33-
console.log('isLoading', isLoading);
34-
3533
const handleUpdateSponsorData = (newSponsorData: SponsorFormValues[] | null) => {
3634
setSponsorData(newSponsorData);
3735
};
@@ -64,23 +62,28 @@ const Sponsors: FC<Props> = ({ location }) => {
6462
display="flex"
6563
flexDirection="column"
6664
>
67-
<SponsorCard
68-
sponsorData={sponsorData?.filter((sponsor) =>
69-
sponsor.SponsorLevel === SPONSORSHIP_LEVELS.CLASS_CHAMPION)}
70-
title={SPONSORSHIP_LEVELS.CLASS_CHAMPION}
71-
/>
72-
<SponsorCard
73-
sponsorData={sponsorData?.filter((sponsor) =>
74-
sponsor.SponsorLevel === SPONSORSHIP_LEVELS.GOLD_MEDAL)}
75-
subtitle={SPONSORSHIP_PRICE[SPONSORSHIP_LEVELS.GOLD_MEDAL]}
76-
title={SPONSORSHIP_LEVELS.GOLD_MEDAL}
77-
/>
78-
<SponsorCard
79-
sponsorData={sponsorData?.filter((sponsor) =>
80-
sponsor.SponsorLevel === SPONSORSHIP_LEVELS.SILVER_MEDAL)}
81-
subtitle={SPONSORSHIP_PRICE[SPONSORSHIP_LEVELS.SILVER_MEDAL]}
82-
title={SPONSORSHIP_LEVELS.SILVER_MEDAL}
83-
/>
65+
{isLoading ? <CircularProgress size={64} thickness={4} />
66+
: (
67+
<>
68+
<SponsorCard
69+
sponsorData={sponsorData?.filter((sponsor) =>
70+
sponsor.SponsorLevel === SPONSORSHIP_LEVELS.CLASS_CHAMPION)}
71+
title={SPONSORSHIP_LEVELS.CLASS_CHAMPION}
72+
/>
73+
<SponsorCard
74+
sponsorData={sponsorData?.filter((sponsor) =>
75+
sponsor.SponsorLevel === SPONSORSHIP_LEVELS.GOLD_MEDAL)}
76+
subtitle={SPONSORSHIP_PRICE[SPONSORSHIP_LEVELS.GOLD_MEDAL]}
77+
title={SPONSORSHIP_LEVELS.GOLD_MEDAL}
78+
/>
79+
<SponsorCard
80+
sponsorData={sponsorData?.filter((sponsor) =>
81+
sponsor.SponsorLevel === SPONSORSHIP_LEVELS.SILVER_MEDAL)}
82+
subtitle={SPONSORSHIP_PRICE[SPONSORSHIP_LEVELS.SILVER_MEDAL]}
83+
title={SPONSORSHIP_LEVELS.SILVER_MEDAL}
84+
/>
85+
</>
86+
)}
8487
</Box>
8588
</Container>
8689
</Box>

src/theme.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// External Dependencies
22
import { amber, cyan, lightBlue } from '@material-ui/core/colors';
33
import {
4-
createMuiTheme,
4+
createTheme,
55
responsiveFontSizes,
66
} from '@material-ui/core/styles';
77

8-
const baseTheme = createMuiTheme({
8+
const baseTheme = createTheme({
99
palette: {
1010
alert: {
1111
info: lightBlue['500'],

src/utils/getPageContext.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { SheetsRegistry } from 'jss';
44
import {
55
createGenerateClassName,
6-
createMuiTheme,
6+
createTheme,
77
} from '@material-ui/core/styles';
88
import {
99
indigo,
@@ -12,7 +12,7 @@ import {
1212

1313
// A theme with custom primary and secondary color.
1414
// It's optional.
15-
const theme = createMuiTheme({
15+
const theme = createTheme({
1616
palette: {
1717
primary: {
1818
light: indigo[300],

0 commit comments

Comments
 (0)