Skip to content

Commit 036f634

Browse files
committed
uncommented s3 bucket line for deployment, rem console logs
1 parent 50ea3cb commit 036f634

File tree

16 files changed

+5
-33
lines changed

16 files changed

+5
-33
lines changed

app/src/components/App.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,14 @@ export const App = (): JSX.Element => {
3232

3333
// following useEffect runs on first mount
3434
useEffect(() => {
35-
console.log('state.isLoggedIn', state.isLoggedIn)
3635
// console.log('cookies.get in App', Cookies.get())
3736
// if user is a guest, see if a project exists in localforage and retrieve it
3837
// v17 May not currently work yet
3938
if (!state.isLoggedIn) {
40-
console.log('not state.islogged in')
4139
localforage.getItem('guestProject').then((project) => {
4240
// if project exists, use dispatch to set initial state to that project
43-
console.log('guestProject', project)
4441
if (project) {
4542
dispatch(setInitialState(project));
46-
console.log('project', project)
4743
}
4844
});
4945
} else {

app/src/components/ContextAPIManager/CreateTab/CreateContainer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ const CreateContainer = () => {
8282
setCurrentContext('');
8383
};
8484

85-
console.log('state.allContext', state.allContext);
8685
return (
8786
<>
8887
<Grid container display="flex" justifyContent="space-evenly">

app/src/components/ContextAPIManager/CreateTab/components/AddContextForm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const AddContextForm = ({
2323
setErrorStatus
2424
}) => {
2525
const { allContext } = contextStore;
26-
console.log('all contexts', allContext);
2726
const [btnDisabled, setBtnDisabled] = useState(false);
2827
const [open, setOpen] = useState(false);
2928
const { state, isDarkMode } = useSelector((store: RootState) => ({

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const StatePropsPanel = ({ isThemeLight, data }): JSX.Element => {
6262
try{
6363
let retVal = JSON.parse(value);
6464
if(Array.isArray(retVal)){
65-
console.log('is this an array still', retVal)
6665
setInputTypeError('');
6766
return retVal
6867
}else{
@@ -195,7 +194,6 @@ const StatePropsPanel = ({ isThemeLight, data }): JSX.Element => {
195194
if (exists) {
196195
setInputKey(table.row.key);
197196
setInputType(table.row.type);
198-
console.log("tablerowvalue", table.row.value);
199197
setInputValue(table.row.value ? JSON.stringify(table.row.value) : '');
200198
} else clearForm();
201199
};

app/src/components/left/RoomsContainer.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const RoomsContainer = () => {
6262
if (currentStore !== event) {
6363
currentStore = JSON.parse(currentStore);
6464
event = JSON.parse(event);
65-
console.log('stores do not match');
6665
if (currentStore.darkMode.isDarkMode !== event.darkMode.isDarkMode) {
6766
store.dispatch(toggleDarkMode());
6867
} else if (currentStore.appState !== event.appState) {
@@ -75,7 +74,6 @@ const RoomsContainer = () => {
7574
store.dispatch(cooperativeStyle(event.styleSlice));
7675
}
7776
}
78-
console.log('updated user Store from another user: ', store.getState());
7977
});
8078
}
8179

@@ -84,7 +82,6 @@ const RoomsContainer = () => {
8482
}
8583

8684
function joinRoom() {
87-
console.log(roomCode);
8885
dispatch(changeRoom(roomCode));
8986
setConfirmRoom((confirmRoom) => roomCode);
9087

app/src/components/left/Sidebar.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ const Sidebar: React.FC<SidebarProps> = ({
2222
setActiveTab(newValue);
2323
toggleVisibility(true);// Show the left-container when a different tab is clicked
2424
oldValue = newValue;//setting the oldvalue to match the new tab
25-
console.log('oldValue change', oldValue)
2625
};
2726

2827
const handleTabClick = (event: React.MouseEvent, oldValue: number) => {
2928
if (activeTab === oldValue) { //if the person is clicking the same tab, oldValue should match activeTab since it did not trigger an onChange
30-
console.log('handleTabChange null', oldValue)
3129
setActiveTab(null);
3230
toggleVisibility(false); // Hide the left-container when the same tab is clicked again
3331
}

app/src/components/marketplace/MarketplaceCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ const MarketplaceCard = ({ proj }: { proj: Project }) => {
5858
try {
5959
const objId: string = proj._id.toString();
6060
// the below functions are commented out as not to incur too many charges
61-
// const response: string = await Storage.get(objId);
61+
const response: string = await Storage.get(objId);
6262
// const response: string = await Storage.get('test');
63-
// setS3ImgURL(response);
63+
setS3ImgURL(response);
6464
} catch (error) {
6565
console.error(`Error fetching image preview for ${proj._id}: `, error);
6666
}

app/src/components/right/DeleteProjects.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function ProjectsDialog(props: ProjectDialogProps) {
4444
const selectedProject = projects.filter(
4545
(project: any) => project._id === value
4646
)[0];
47-
console.log('deleting this one', selectedProject)
4847
deleteProject(selectedProject);
4948
localforage.removeItem(window.localStorage.getItem('ssid'));
5049
dispatch(setInitialState(initialState))

app/src/components/right/OpenProjects.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ function ProjectsDialog(props: ProjectDialogProps) {
3737
(project: any) => project._id === value
3838
)[0];
3939
// dispatch({ type: 'OPEN PROJECT', payload: selectedProject });
40-
console.log(selectedProject);
4140
dispatch(openProject(selectedProject))
4241
openAlert()
4342
onClose();

app/src/components/top/NavBar.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const NavBar = () => {
4040
}, [state.name])//update the ProjectName after state.name changes due to loading projects
4141

4242
const deleteAlertOpen = () => {
43-
console.log("I am hit")
4443
setDeleteAlert(true);
4544
}
4645

@@ -92,7 +91,6 @@ const NavBar = () => {
9291

9392
publishProject(projectName, state)
9493
.then((newProject: State) => {
95-
console.log('Project published successfully', newProject);
9694
setPublishModalOpen(false);
9795
dispatch(updateProjectId(newProject._id));
9896
dispatch(updateProjectName(newProject.name));
@@ -109,7 +107,6 @@ const NavBar = () => {
109107
const handleUnpublish = () => {
110108
unpublishProject(state)
111109
.then((unpublishedProject: State) => {
112-
console.log('Project unpublished successfully', unpublishedProject);
113110
dispatch(updateProjectPublished(false));
114111
setAlertOpen2(true);
115112
})

0 commit comments

Comments
 (0)