Skip to content

Commit 8a0a25b

Browse files
committed
Branch created
Co-authored-by: wbrittwage <[email protected]> Co-authored-by: Miles818 <[email protected]>
1 parent bac3b50 commit 8a0a25b

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

app/src/Dashboard/ProjectContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, {
22
useState, useContext, useEffect, createContext,
33
} from 'react';
44
import {
5-
createMuiTheme, MuiThemeProvider, makeStyles, Theme, useTheme,
5+
createTheme, MuiThemeProvider, makeStyles, Theme, useTheme,
66
} from '@material-ui/core/styles';
77
import { useQuery } from '@apollo/client';
88

app/src/components/left/HTMLPanel.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import React, { useState, useCallback, useContext, useEffect } from 'react';
22
import Grid from '@material-ui/core/Grid';
33
import StateContext from '../../context/context';
44
import HTMLItem from './HTMLItem';
5+
// import { styleContext } from './AppContainer';
6+
57
import { makeStyles, styled } from '@material-ui/core/styles';
68
import {
79
Button,
@@ -32,6 +34,7 @@ const HTMLPanel = (props): JSX.Element => {
3234
const [errorStatus, setErrorStatus] = useState(false);
3335
const [state, dispatch] = useContext(StateContext);
3436
const {isThemeLight} = props;
37+
// const { style } = useContext(styleContext);
3538
let startingID = 0;
3639
state.HTMLTypes.forEach(element => {
3740
if (element.id >= startingID) startingID = element.id;
@@ -156,12 +159,12 @@ const HTMLPanel = (props): JSX.Element => {
156159
}, []);
157160

158161
return (
159-
<div className="HTMLItemCreate">
162+
<div className="HTMLItemCreate" >
160163
<div className={classes.addComponentWrapper}>
161164
<div className={classes.inputWrapper}>
162165
<form onSubmit={handleSubmit} className="customForm">
163166

164-
<h4 className={isThemeLight ? classes.lightThemeFontColor : classes.darkThemeFontColor }>New HTML Tag: </h4>
167+
<h4 className={isThemeLight ? classes.lightThemeFontColor : classes.darkThemeFontColor } value = "New HTML Tag">New HTML Tag: </h4>
165168
<InputLabel className={isThemeLight ? `${classes.inputLabel} ${classes.lightThemeFontColor}` : `${classes.inputLabel} ${classes.darkThemeFontColor}`}>
166169
Tag:
167170
</InputLabel>

app/src/containers/AppContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useContext, createContext } from 'react';
2-
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles';
2+
import { createTheme, MuiThemeProvider } from '@material-ui/core/styles';
33
// import Button from '@material-ui/core/Button';
44
import NavBar from '../components/top/NavBar';
55
import LeftContainer from './LeftContainer';

app/src/public/styles/theme.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { createMuiTheme } from '@material-ui/core/styles';
1+
import { createTheme } from '@material-ui/core/styles';
22

3-
export const theme1 = createMuiTheme({
3+
export const theme1 = createTheme({
44

55

66
palette: {
@@ -14,7 +14,7 @@ export const theme1 = createMuiTheme({
1414
});
1515

1616

17-
export const theme2 = createMuiTheme({
17+
export const theme2 = createTheme({
1818
palette: {
1919
secondary: {
2020
main: '#304D6D', // dark mode color

0 commit comments

Comments
 (0)