Skip to content

Commit eca51ac

Browse files
authored
Merge pull request #40 from oslabs-beta/sb/cleanup
Sb/cleanup
2 parents 4bb2edd + 4159bd9 commit eca51ac

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

app/src/components/StateManagement/CreateTab/components/StatePropsPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useContext, useEffect } from 'react';
1+
import React, { useState, useEffect } from 'react';
22
import { Theme } from '@mui/material/styles';
33
import makeStyles from '@mui/styles/makeStyles';
44
import { useDispatch, useSelector } from 'react-redux';

app/src/components/StateManagement/CreateTab/components/TableParentProps.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import React, { useState, useContext, useEffect } from 'react';
1+
import React, { useState, useEffect } from 'react';
22
import { useDispatch, useSelector } from 'react-redux';
33
import {
44
DataGrid,
55
GridEditRowsModel,
66
} from '@mui/x-data-grid';
77
import Button from '@mui/material/Button';
88
import makeStyles from '@mui/styles/makeStyles';
9-
import { StatePropsPanelProps } from '../../../../interfaces/Interfaces';
109
import AddIcon from '@mui/icons-material/Add';
1110
import { addPassedInProps } from '../../../../redux/reducers/slice/appStateSlice';
1211
import { RootState } from '../../../../redux/store'

app/src/components/StateManagement/CreateTab/components/TablePassedInProps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const TablePassedInProps = props => {
108108
</div>
109109
);
110110
};
111-
111+
// colors of state mgmt modal
112112
const useStyles = makeStyles({
113113
themeLight: {
114114
color: 'rgba(0,0,0,0.54)',

app/src/components/StateManagement/CreateTab/components/TableStateProps.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ import ClearIcon from '@mui/icons-material/Clear';
88
import makeStyles from '@mui/styles/makeStyles';
99
import { StatePropsPanelProps } from '../../../../interfaces/Interfaces';
1010
import { useDispatch, useSelector } from 'react-redux';
11-
import { deletePassedInProps } from '../../../../redux/reducers/slice/appStateSlice';
1211
import { deleteState } from '../../../../redux/reducers/slice/appStateSlice';
1312
import { RootState } from '../../../../redux/store'
14-
import { current } from '@reduxjs/toolkit';
1513

14+
// updates state mgmt boxes and data grid
1615
const TableStateProps = props => {
1716
const { state, contextParam } = useSelector((store:RootState) => ({
1817
state: store.appState,

app/src/components/StateManagement/DisplayTab/DataTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useContext } from 'react';
1+
import React from 'react';
22
import Table from '@mui/material/Table';
33
import TableBody from '@mui/material/TableBody';
44
import TableContainer from '@mui/material/TableContainer';

app/src/components/StateManagement/DisplayTab/DisplayContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useContext } from 'react';
1+
import React, { useState } from 'react';
22
import Divider from '@mui/material/Divider';
33
import Grid from '@mui/material/Grid';
44
import { Typography } from '@mui/material';

app/src/components/StateManagement/StateManagement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useContext } from 'react';
1+
import React from 'react';
22
import { makeStyles } from '@mui/styles';
33
import Box from '@mui/material/Box';
44
import Tab from '@mui/material/Tab';

app/src/components/right/ComponentPanel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Future developers: This file needs to move to right folder: src/components/right
21
import React, { useState, useEffect, useCallback } from 'react';
32
import makeStyles from '@mui/styles/makeStyles';
43
import { Button, Checkbox, FormControlLabel, InputLabel } from '@mui/material';

app/src/components/right/ExportButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export default function ExportButton() {
8686
);
8787
}
8888

89+
// This code is commented out below for v16, it is export function for electron, which may be useful for future devs
8990
//The below code is exclusive to ReacType's Electron App
9091
//If you would like to deploy the app, please comment out the exportButton function above and uncomment the code below
9192

app/src/components/right/LoginButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useSelector, useDispatch } from 'react-redux';
33
import { toggleLoggedIn } from '../../redux/reducers/slice/appStateSlice';
44
import config from '../../../../config.js';
55
import { RootState } from '../../redux/store';
6+
// note that API_BASE_URL is assigned to different pages on dev mode vs prod mode
67
const { API_BASE_URL, API_BASE_URL2 } = config;
78

89
export default function LoginButton() {

app/src/components/top/NavBarButtons.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import config from '../../../../config';
3131
const { API_BASE_URL } = config;
3232
import { RootState } from '../../redux/store';
3333

34+
// Part - join room and room code functionality
3435
let socket;
3536

3637
function initSocketConnection(roomCode) {
@@ -253,7 +254,7 @@ function navbarDropDown(props) {
253254
// Call handleUserEnteredRoom when joining a room
254255
handleUserEnteredRoom(roomCode);
255256
}
256-
257+
// Part - Dark Mode
257258
const switchDark = isDarkMode ? (
258259
<svg
259260
xmlns="http://www.w3.org/2000/svg"

0 commit comments

Comments
 (0)