Skip to content

Commit ae79907

Browse files
committed
BottomTab test working
1 parent 200d895 commit ae79907

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

__tests__/componentReducer.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import reducer from '../app/src/redux/reducers/slice/appStateSlice';
22
import { State, Action } from '../app/src/interfaces/Interfaces';
3-
43
import { initialState } from '../app/src/redux/reducers/slice/appStateSlice';
54
import { iterate } from 'localforage';
65
import { ConstructionOutlined } from '@mui/icons-material';

app/src/components/bottom/BottomTabs.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ const useStyles = makeStyles((theme) => ({
172172
tabRoot: {
173173
textTransform: 'initial',
174174
minWidth: 40,
175-
fontWeight: theme.typography.fontWeightRegular,
176-
marginRight: theme.spacing(2), // JZ: updated syntax as per deprecation warning
177-
marginLeft: theme.spacing(2),
175+
// fontWeight: theme.typography.fontWeightRegular,
176+
// marginRight: theme.spacing(2), // JZ: updated syntax as per deprecation warning
177+
// marginLeft: theme.spacing(2),
178178

179179
fontFamily: [
180180
'-apple-system',
@@ -193,20 +193,20 @@ const useStyles = makeStyles((theme) => ({
193193
opacity: 1
194194
},
195195
'&$tabSelected': {
196-
color: 'white',
197-
fontWeight: theme.typography.fontWeightMedium
196+
color: 'white'
197+
// fontWeight: theme.typography.fontWeightMedium
198198
},
199199
'&:focus': {
200200
color: 'white'
201201
}
202202
},
203203
tabSelected: {},
204-
typography: {
205-
padding: theme.spacing(3)
206-
},
207-
padding: {
208-
padding: `0 ${theme.spacing(2)}`
209-
},
204+
// typography: {
205+
// padding: theme.spacing(3)
206+
// // },
207+
// padding: {
208+
// padding: `0 ${theme.spacing(2)}`
209+
// },
210210
switch: {
211211
marginRight: '10px',
212212
marginTop: '2px'

app/src/redux/reducers/slice/appStateSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ const appStateSlice = createSlice({
379379
state.tailwind,
380380
action.payload.contextParam
381381
);
382-
console.log('addchild state before update', current(state));
382+
// console.log('addchild state before update', current(state));
383383
state.components = components;
384384
state.nextChildId = nextChildId;
385385
state.canvasFocus = canvasFocus;

0 commit comments

Comments
 (0)