Skip to content

Commit b569caf

Browse files
Add desc and send to main process
1 parent ca477c6 commit b569caf

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

app/context/DashboardContext.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ interface IFields {
1313
database: string;
1414
URI: string;
1515
name: string;
16+
description: string;
1617
}
1718

1819
export const DashboardContext = createContext<any>(null);
@@ -39,8 +40,11 @@ const DashboardContextProvider = ({ children }: Props) => {
3940
* of applications
4041
*/
4142
const addApp = (fields: IFields) => {
42-
const { database, URI, name } = fields;
43-
const result = ipcRenderer.sendSync('addApp', JSON.stringify([name, database, URI]));
43+
const { database, URI, name, description } = fields;
44+
const result = ipcRenderer.sendSync(
45+
'addApp',
46+
JSON.stringify([name, database, URI, description])
47+
);
4448
setApplications(result);
4549
};
4650

0 commit comments

Comments
 (0)