Skip to content

Commit a410461

Browse files
committed
branch protection test
1 parent 09a8717 commit a410461

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/containers/MainContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import '../stylesheets/MainContainer.scss';
1616
const MainContainer = React.memo((props) => {
1717
const { mode, applications } = useContext(DashboardContext);
1818
const currentModeCSS = mode === 'light' ? lightAndDark.lightModeMain : lightAndDark.darkModeMain;
19-
19+
2020

2121
return (
2222
<>

app/containers/SidebarContainer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const SidebarContainer = React.memo(() => {
3939
name: 'Example',
4040
description: 'Microservices'
4141
}
42+
4243
addApp(fields)
4344
}
4445

app/context/DashboardContext.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable no-console */
22
/* eslint-disable no-throw-literal */
33
import React, { useState, createContext, useCallback } from 'react';
4+
import { ApplicationContext } from './ApplicationContext';
45
const { ipcRenderer } = window.require('electron');
56

67
interface IFields {
@@ -27,6 +28,7 @@ interface AwsFields {
2728

2829
export const DashboardContext = createContext<any>(null);
2930

31+
3032
/**
3133
* MANAGES THE FOLLOWING DATA AND ACTIONS:
3234
* @property {Array} applications List of all applications, their description, database type and creation date
@@ -42,6 +44,7 @@ const DashboardContextProvider = React.memo((props: any) => {
4244
const children = props.children;
4345

4446
// Initial user will always be the guest
47+
4548
const [user, setUser] = useState<string>('guest');
4649
const [applications, setApplications] = useState<string[][]>([]);
4750
// console.log({applications})
@@ -61,6 +64,7 @@ const DashboardContextProvider = React.memo((props: any) => {
6164
JSON.stringify([name, database, URI, description, typeOfService])
6265
);
6366
setApplications(result);
67+
console.log({result})
6468
// console.log('the current application that was added is : ', result);
6569
}, []);
6670

0 commit comments

Comments
 (0)