From 4999b1323fa71c303d209ed4bb7d52f9f0bbf950 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 28 Aug 2019 10:19:28 +0200 Subject: [PATCH] add mappings page; implement delete mapping function --- client/src/components/PromptMessage/index.js | 35 ++++++++ client/src/constants/menuItems.js | 8 ++ .../components/SingleMapping.js | 71 ++++++++++++++++ .../src/scenes/RoomOfficeNameMapping/index.js | 84 +++++++++++++++++++ .../src/store/actions/integrationActions.js | 11 +++ 5 files changed, 209 insertions(+) create mode 100644 client/src/components/PromptMessage/index.js create mode 100644 client/src/scenes/RoomOfficeNameMapping/components/SingleMapping.js create mode 100644 client/src/scenes/RoomOfficeNameMapping/index.js diff --git a/client/src/components/PromptMessage/index.js b/client/src/components/PromptMessage/index.js new file mode 100644 index 0000000..e85e9ad --- /dev/null +++ b/client/src/components/PromptMessage/index.js @@ -0,0 +1,35 @@ +import React, { Component } from 'react'; +import {Button, Modal} from "semantic-ui-react"; + + +class PromptMessage extends Component { + render() { + const { + show = false, + size = 'tiny', + title = '', + message = '', + noActionLabel = 'No', + yesActionLabel = 'Yes', + yesActionIconName = 'checkmark', + onClose = null, + onActionNo = null, + onActionYes = null, + } = this.props; + + return ( + + {title} + +

{message}

+
+ + +