Skip to content

Commit 8defd8c

Browse files
author
Jeffrey Na
committed
Merge branch 'dev' into jeff
2 parents daa364d + e027bf7 commit 8defd8c

File tree

5 files changed

+203
-228
lines changed

5 files changed

+203
-228
lines changed

app/components/Splash.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import '../stylesheets/Splash.scss';
33

4-
//Chronos logo when first starting the electron app. Has the picture for 4 seconds.
4+
//Chronos logo when first starting the electron app. Has the picture for 4 seconds.
55
const Splash: React.FC = React.memo(props => {
66
const [visible, setVisible] = useState(true);
77

@@ -13,7 +13,7 @@ const Splash: React.FC = React.memo(props => {
1313
<>
1414
{visible && (
1515
<div id="splash">
16-
<img id="splashLogo" src="../assets/logo.svg" alt="Chronos" />
16+
<img id="splashLogo" src="assets/logo.svg" alt="Chronos" />
1717
</div>
1818
)}
1919
</>

app/containers/SidebarContainer.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,31 @@ import { AwsContext } from '../context/AwsContext';
1212

1313
const SidebarContainer = React.memo(props => {
1414
// Extract invervalID from ApplicationContext. Initival value: intervalID = null
15-
const { intervalID } = useContext (ApplicationContext);
15+
const { intervalID } = useContext(ApplicationContext);
1616
// Extract isLoading and setLoading state from AwsContext. Initial value: isLoading = true
17-
const { isLoading, setLoadingState } = useContext(AwsContext);
17+
const { isLoading, setLoadingState } = useContext(AwsContext);
1818

1919
// clear interval and set loading state to true when leaving graph containers
2020

2121
/**
22-
* @function handleCLick - check if the 'intervalID' exists. If so, theres a timer running and the fuunction clears the timer using @function clearInterval - function.
23-
* Checks if variable 'isLoading' is false and if so the content is not loading and therefore, sets it to true using the setLoadingState function.
22+
* @function handleCLick - check if the 'intervalID' exists. If so, theres a timer running and the fuunction clears the timer using @function clearInterval - function.
23+
* Checks if variable 'isLoading' is false and if so the content is not loading and therefore, sets it to true using the setLoadingState function.
2424
*/
2525
const handleClick = () => {
26-
if(intervalID) clearInterval(intervalID);
27-
if(!isLoading) setLoadingState(true);
28-
}
26+
if (intervalID) clearInterval(intervalID);
27+
if (!isLoading) setLoadingState(true);
28+
};
2929

3030
return (
3131
<div className="sidebar-container" id="mySidebar">
3232
<div className="sidebar">
3333
<div className="firstRow">
3434
<span>
35-
<img alt="C" id="C" src="../assets/C.svg" />
35+
{/* Attempting to change the path by taking out the ../ */}
36+
<img alt="C" id="C" src="assets/C.svg" />
3637
</span>
3738
<span>
38-
<img alt="Chronos" id="logo" src="../assets/logo.svg" />
39+
<img alt="Chronos" id="logo" src="assets/logo.svg" />
3940
</span>
4041
</div>
4142
<hr className="line" id="firstLine" />
@@ -87,7 +88,7 @@ const SidebarContainer = React.memo(props => {
8788
</div>
8889
</div>
8990
</div>
90-
)
91+
);
9192
});
9293

9394
export default SidebarContainer;

0 commit comments

Comments
 (0)