diff --git a/portal-ui/src/common/BackLink.tsx b/portal-ui/src/common/BackLink.tsx index 0e67c9d60..668d399d0 100644 --- a/portal-ui/src/common/BackLink.tsx +++ b/portal-ui/src/common/BackLink.tsx @@ -55,7 +55,7 @@ const BackLink = ({ to, label, classes }: IBackLink) => {
-
{label}
+
{label}
); }; diff --git a/portal-ui/src/screens/Console/NotificationEndpoints/AddNotificationEndpoint.tsx b/portal-ui/src/screens/Console/NotificationEndpoints/AddNotificationEndpoint.tsx index 869eeec60..8179f9d4b 100644 --- a/portal-ui/src/screens/Console/NotificationEndpoints/AddNotificationEndpoint.tsx +++ b/portal-ui/src/screens/Console/NotificationEndpoints/AddNotificationEndpoint.tsx @@ -40,10 +40,11 @@ import { ErrorResponseHandler } from "../../../common/types"; import { IElementValue } from "../Configurations/types"; import PageHeader from "../Common/PageHeader/PageHeader"; -import { BackSettingsIcon } from "../../../icons"; import history from "../../../history"; import withSuspense from "../Common/Components/withSuspense"; +import BackLink from "../../../common/BackLink"; +import PageLayout from "../Common/Layout/PageLayout"; const ConfMySql = withSuspense( React.lazy(() => import("./CustomForms/ConfMySql")) @@ -61,23 +62,6 @@ const styles = (theme: Theme) => createStyles({ ...modalBasic, ...settingsCommon, - strongText: { - fontWeight: 700, - }, - keyName: { - marginLeft: 5, - }, - buttonContainer: { - textAlign: "right", - }, - lambdaFormIndicator: { - display: "flex", - marginBottom: 40, - }, - customTitle: { - ...settingsCommon.customTitle, - marginTop: 0, - }, lambdaNotif: { background: "linear-gradient(90deg, rgba(249,249,250,1) 0%, rgba(250,250,251,1) 68%, rgba(254,254,254,1) 100%)", @@ -88,7 +72,6 @@ const styles = (theme: Theme) => alignItems: "center", justifyContent: "start", marginBottom: 16, - marginRight: 8, cursor: "pointer", padding: 0, overflow: "hidden", @@ -112,13 +95,9 @@ const styles = (theme: Theme) => fontFamily: "Lato,sans-serif", paddingLeft: 18, }, - mainCont: { - maxWidth: 1180, - paddingLeft: 38, - paddingRight: 38, - }, - backTo: { - margin: "20px 0px 0", + formBox: { + border: "1px solid #EAEAEA", + padding: 15, }, }); @@ -208,20 +187,13 @@ const AddNotificationEndpoint = ({ return ( -
- - - - + + + {service !== "" && ( @@ -247,23 +219,25 @@ const AddNotificationEndpoint = ({ )} - - {srvComponent} - - - - +
+ + {srvComponent} + + + + +
)} -
-
+ +
); }; diff --git a/portal-ui/src/screens/Console/NotificationEndpoints/CustomForms/ConfMySql.tsx b/portal-ui/src/screens/Console/NotificationEndpoints/CustomForms/ConfMySql.tsx index d6aa3c4f6..cea97b7cf 100644 --- a/portal-ui/src/screens/Console/NotificationEndpoints/CustomForms/ConfMySql.tsx +++ b/portal-ui/src/screens/Console/NotificationEndpoints/CustomForms/ConfMySql.tsx @@ -22,7 +22,10 @@ import Grid from "@mui/material/Grid"; import InputBoxWrapper from "../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper"; import RadioGroupSelector from "../../Common/FormComponents/RadioGroupSelector/RadioGroupSelector"; import { IElementValue } from "../../Configurations/types"; -import { modalBasic } from "../../Common/FormComponents/common/styleLibrary"; +import { + formFieldStyles, + modalBasic, +} from "../../Common/FormComponents/common/styleLibrary"; import CommentBoxWrapper from "../../Common/FormComponents/CommentBoxWrapper/CommentBoxWrapper"; import FormSwitchWrapper from "../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper"; import PredefinedList from "../../Common/FormComponents/PredefinedList/PredefinedList"; @@ -35,6 +38,7 @@ interface IConfMySqlProps { const styles = (theme: Theme) => createStyles({ ...modalBasic, + ...formFieldStyles, }); const ConfMySql = ({ onChange, classes }: IConfMySqlProps) => { @@ -146,7 +150,7 @@ const ConfMySql = ({ onChange, classes }: IConfMySqlProps) => { {useDsnString ? ( - + { - + { }} /> - + { }} /> - + { /> - + { }} /> - + { )} - + { }} /> - + { ]} /> - + { }} /> - + { }} /> - + createStyles({ ...modalBasic, + ...formFieldStyles, }); const ConfPostgres = ({ onChange, classes }: IConfPostgresProps) => { @@ -218,7 +222,7 @@ const ConfPostgres = ({ onChange, classes }: IConfPostgresProps) => { {useConnectionString ? ( - + { - + { }} /> - + { }} /> - + { }} /> - + { ]} /> - + { }} /> - + { )} - + { }} /> - + { ]} /> - + { }} /> - + { }} /> - + lambdaContainer: { padding: "15px 0", }, + searchField: { + ...searchField.searchField, + maxWidth: 380, + }, + tableBlock: { + ...tableStyles.tableBlock, + }, + rightActionItems: { + display: "flex", + "& button": { + whiteSpace: "nowrap", + }, + }, }); const ListNotificationEndpoints = ({ @@ -139,56 +153,42 @@ const ListNotificationEndpoints = ({ return ( - + - { - setFilter(event.target.value); - }} - InputProps={{ - disableUnderline: true, - startAdornment: ( - - - - ), - }} - variant="standard" + - { - setIsLoading(true); - }} - size="large" - > - - - - - -
+
+ { + setIsLoading(true); + }} + size="large" + > + + + +
{isLoading && } {!isLoading && ( {records.length > 0 && ( - + )} - +
); }; diff --git a/portal-ui/src/screens/Console/NotificationEndpoints/NotificationTypeSelector.tsx b/portal-ui/src/screens/Console/NotificationEndpoints/NotificationTypeSelector.tsx index f51386721..7c5fc7111 100644 --- a/portal-ui/src/screens/Console/NotificationEndpoints/NotificationTypeSelector.tsx +++ b/portal-ui/src/screens/Console/NotificationEndpoints/NotificationTypeSelector.tsx @@ -15,7 +15,6 @@ // along with this program. If not, see . import React, { Fragment } from "react"; -import Grid from "@mui/material/Grid"; import { Theme } from "@mui/material/styles"; import createStyles from "@mui/styles/createStyles"; import withStyles from "@mui/styles/withStyles"; @@ -27,6 +26,7 @@ import { import PageHeader from "../Common/PageHeader/PageHeader"; import history from "../../../history"; import BackLink from "../../../common/BackLink"; +import PageLayout from "../Common/Layout/PageLayout"; interface INotificationTypeSelector { classes: any; @@ -38,13 +38,8 @@ const styles = (theme: Theme) => createStyles({ ...settingsCommon, ...typesSelection, - mainCont: { - ...settingsCommon.mainCont, - maxWidth: 1180, - }, link: { - textDecoration: "none", - color: theme.palette.primary.main, + maxWidth: 300, }, }); @@ -52,43 +47,40 @@ const NotificationTypeSelector = ({ classes }: INotificationTypeSelector) => { return ( - - - - - -
- {withLogos.map((item) => { - return ( - - ); - })} -
-
-
+
+ {item.targetTitle} +
+ + ); + })} + +
); };