Skip to content

Commit

Permalink
Minor refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
isomorpheric committed Apr 5, 2021
1 parent 4a6d734 commit 8096f3f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 62 deletions.
4 changes: 2 additions & 2 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import Head from 'next/head';
import { responsiveFontSizes, ThemeProvider } from '@material-ui/core/styles';
// import { responsiveFontSizes, ThemeProvider } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import theme from '../styles/theme';
// import theme from '../styles/theme';
import { AuthProvider } from '../lib/auth';
import Layout from '../components/layout/Layout';
import AuthGuard from '../lib/AuthGuard';
Expand Down
3 changes: 1 addition & 2 deletions pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import React from 'react';
import Document, { Html, Head, Main, NextScript } from 'next/document';
import { ServerStyleSheets } from '@material-ui/core/styles';
import theme from '../styles/theme';

export default class MyDocument extends Document {
render() {
return (
<Html lang='en'>
<Head>
{/* PWA primary color */}
<meta name='theme-color' content={theme.palette.primary.main} />
<meta name='theme-color' content={'#8AA39B'} />
<link rel='preconnect' href='https://fonts.gstatic.com'></link>
<link
rel='stylesheet'
Expand Down
2 changes: 1 addition & 1 deletion pages/groups/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const GroupDetail = () => {
};

const isOwner = () => {
if (auth.user.uid === groupInfo.author) {
if (auth?.user?.uid === groupInfo?.author) {
return true;
}

Expand Down
57 changes: 0 additions & 57 deletions styles/theme.js

This file was deleted.

1 comment on commit 8096f3f

@vercel
Copy link

@vercel vercel bot commented on 8096f3f Apr 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.