Skip to content

Commit 213e051

Browse files
committed
merging minor changes
Merge branch 'Tim/aws-graph' of https://github.com/oslabs-beta/Chronos into ChronosTeam/ecs-final
2 parents 057b304 + f071912 commit 213e051

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ coverage
88
__tests__/**/__snapshots__
99
.env
1010
databases.txt
11+
settings.json
1112

1213
# Compiled source #
1314
###################

app/App.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@ import React, { useState } from 'react';
22
import Splash from './components/Splash';
33
import DashboardContainer from './containers/DashboardContainer';
44
import './stylesheets/scrollBar.scss';
5-
import { QueryClient, QueryClientProvider } from 'react-query';
6-
import { ReactQueryDevtools } from 'react-query/devtools'
7-
8-
const queryClient = new QueryClient();
95

106
const App: React.FC = React.memo(() => {
117
return (
12-
<QueryClientProvider client={queryClient}>
8+
<div>
139
<Splash />
1410
<DashboardContainer />
15-
</QueryClientProvider>
16-
17-
)
11+
</div>
12+
);
1813
});
1914

2015
export default App;

app/containers/AWSGraphsContainer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const AwsGraphsContainer: React.FC = React.memo(props => {
4646
useEffect(() => {
4747
return () => {
4848
console.log('unmounting, shut down fetch process');
49-
5049
if(intervalID) clearInterval(intervalID);
5150
setAwsData({ CPUUtilization: [], NetworkIn: [], NetworkOut: [], DiskReadBytes: [] })
5251
setAwsEcsData({});

app/modals/AwsModal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ const AwsModal: React.FC<AddModalProps> = React.memo(({ setOpen }) => {
7676
<option value="AWS/ECS">Elastic Container Service (ECS)</option>
7777
</select>
7878
</div>
79-
{typeOfService === 'AWS/EC2' &&
79+
{typeOfService === 'AWS/EC2' && (
8080
<div>
8181
<label htmlFor="instance">
82-
Instance ID<span>*</span>
82+
AWS Instance ID<span>*</span>
8383
</label>
8484
<input
8585
id="aws-instance"
@@ -90,7 +90,7 @@ const AwsModal: React.FC<AddModalProps> = React.memo(({ setOpen }) => {
9090
required
9191
/>
9292
</div>
93-
}
93+
)}
9494
<div>
9595
<label htmlFor="region">
9696
Region<span>*</span>
@@ -128,7 +128,7 @@ const AwsModal: React.FC<AddModalProps> = React.memo(({ setOpen }) => {
128128
</label>
129129
<input
130130
id="aws-access-key"
131-
type="text"
131+
type="password"
132132
name="accessKey"
133133
value={accessKey}
134134
onChange={e => handleChange(e)}
@@ -142,7 +142,7 @@ const AwsModal: React.FC<AddModalProps> = React.memo(({ setOpen }) => {
142142
</label>
143143
<input
144144
id="aws-secret-access-key"
145-
type="text"
145+
type="password"
146146
name="secretAccessKey"
147147
value={secretAccessKey}
148148
onChange={e => handleChange(e)}

0 commit comments

Comments
 (0)