-
-
-
-
Access Policy:
-
- {loadingBucket ? (
-
- ) : (
- accessPolicy.toLowerCase()
- )}
-
-
Reported Usage:
-
- {loadingSize ? (
-
- ) : (
- niceBytes(bucketSize)
- )}
-
-
Replication:
-
- {replicationRules.length ? "Yes" : "No"}
-
-
Versioning:
-
{isVersioned ? "Yes" : "No"}
-
-
-
-
+
+
+
-
+
+
+
Access Policy:
+
+ {loadingBucket ? (
+
+ ) : (
+ accessPolicy.toLowerCase()
+ )}
+
+
Reported Usage:
+
+ {loadingSize ? (
+
+ ) : (
+ niceBytes(bucketSize)
+ )}
+
+
Replication:
+
+ {replicationRules.length ? "Yes" : "No"}
+
+
Versioning:
+
{isVersioned ? "Yes" : "No"}
+
+
+
+
+
+
+
-
-
-
-
-
-
- , newValue: number) => {
- this.setState({ curTab: newValue });
- }}
- indicatorColor="primary"
- textColor="primary"
- aria-label="cluster-tabs"
- >
-
-
-
-
-
- {curTab === 0 && (
- }
- size="medium"
- onClick={() => {
- this.setState({
- addScreenOpen: true,
- });
+
+
+
+
+
+ , newValue: number) => {
+ this.setState({ curTab: newValue });
}}
+ indicatorColor="primary"
+ textColor="primary"
+ aria-label="cluster-tabs"
>
- Subscribe to Event
-
- )}
- {curTab === 1 && (
- }
- size="medium"
- onClick={() => {
- this.setState({
- openSetReplication: true,
- });
- }}
- >
- Add Replication Rule
-
- )}
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {curTab === 0 && (
+ }
+ size="medium"
+ onClick={() => {
+ this.setState({
+ addScreenOpen: true,
+ });
+ }}
+ >
+ Subscribe to Event
+
+ )}
+ {curTab === 1 && (
+ }
+ size="medium"
+ onClick={() => {
+ this.setState({
+ openSetReplication: true,
+ });
+ }}
+ >
+ Add Replication Rule
+
+ )}
+
+
+
+
+
+
+
+
+
diff --git a/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts b/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts
index c1a2c053a..34b333edd 100644
--- a/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts
+++ b/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts
@@ -79,3 +79,19 @@ export const checkboxIcons = {
backgroundColor: "#201763",
},
};
+
+export const containerForHeader = (bottomSpacing: any) => ({
+ container: {
+ padding: "110px 33px 30px",
+ paddingBottom: bottomSpacing,
+ "& h6": {
+ color: "#777777",
+ fontSize: 14,
+ },
+ "& p": {
+ "& span": {
+ fontSize: 16,
+ },
+ },
+ },
+});
diff --git a/portal-ui/src/screens/Console/Common/PageHeader/PageHeader.tsx b/portal-ui/src/screens/Console/Common/PageHeader/PageHeader.tsx
new file mode 100644
index 000000000..3c53c2954
--- /dev/null
+++ b/portal-ui/src/screens/Console/Common/PageHeader/PageHeader.tsx
@@ -0,0 +1,48 @@
+import React from "react";
+import Grid from "@material-ui/core/Grid";
+import { createStyles, Theme, withStyles } from "@material-ui/core/styles";
+import Typography from "@material-ui/core/Typography";
+
+interface IPageHeader {
+ classes: any;
+ label: any;
+}
+
+const styles = (theme: Theme) =>
+ createStyles({
+ headerContainer: {
+ position: "absolute",
+ width: "100%",
+ height: 77,
+ display: "flex",
+ backgroundColor: "#fff",
+ borderBottom: "#E3E3E3 1px solid",
+ left: 0,
+ },
+ label: {
+ display: "flex",
+ justifyContent: "flex-start",
+ alignItems: "center",
+ },
+ labelStyle: {
+ color: "#000",
+ fontSize: 18,
+ fontWeight: 700,
+ marginLeft: 55,
+ marginTop: 8,
+ },
+ });
+
+const PageHeader = ({ classes, label }: IPageHeader) => {
+ return (
+
+
+
+ {label}
+
+
+
+ );
+};
+
+export default withStyles(styles)(PageHeader);
diff --git a/portal-ui/src/screens/Console/Configurations/ConfigurationPanels/ConfigurationsList.tsx b/portal-ui/src/screens/Console/Configurations/ConfigurationPanels/ConfigurationsList.tsx
index 940700f34..3a9febe25 100644
--- a/portal-ui/src/screens/Console/Configurations/ConfigurationPanels/ConfigurationsList.tsx
+++ b/portal-ui/src/screens/Console/Configurations/ConfigurationPanels/ConfigurationsList.tsx
@@ -27,6 +27,8 @@ import TableWrapper from "../../Common/TableWrapper/TableWrapper";
import { configurationElements } from "../utils";
import { IConfigurationElement } from "../types";
import EditConfiguration from "../CustomForms/EditConfiguration";
+import { containerForHeader } from "../../Common/FormComponents/common/styleLibrary";
+import PageHeader from "../../Common/PageHeader/PageHeader";
interface IListConfiguration {
classes: any;
@@ -58,6 +60,7 @@ const styles = (theme: Theme) =>
iconText: {
lineHeight: "24px",
},
+ ...containerForHeader(theme.spacing(4)),
});
const ConfigurationsList = ({ classes }: IListConfiguration) => {
@@ -103,47 +106,44 @@ const ConfigurationsList = ({ classes }: IListConfiguration) => {
selectedConfiguration={selectedConfiguration}
/>
)}
+
-
- Configurations List
-
-
-
-
- {error !== "" && {error}}
-
- {
- setFilter(event.target.value);
- }}
- InputProps={{
- disableUnderline: true,
- startAdornment: (
-
-
-
- ),
- }}
- />
-
-
-
-
-
-
+
+ {error !== "" && {error}}
+
+ {
+ setFilter(event.target.value);
+ }}
+ InputProps={{
+ disableUnderline: true,
+ startAdornment: (
+
+
+
+ ),
+ }}
+ />
+
+
+
+
+
+
+
diff --git a/portal-ui/src/screens/Console/Console.tsx b/portal-ui/src/screens/Console/Console.tsx
index cdd3a7688..1a4812a6a 100644
--- a/portal-ui/src/screens/Console/Console.tsx
+++ b/portal-ui/src/screens/Console/Console.tsx
@@ -84,7 +84,7 @@ function Copyright() {
);
}
-const drawerWidth = 254;
+const drawerWidth = 245;
const styles = (theme: Theme) =>
createStyles({
@@ -136,6 +136,9 @@ const styles = (theme: Theme) =>
duration: theme.transitions.duration.enteringScreen,
}),
overflowX: "hidden",
+ background:
+ "transparent linear-gradient(90deg, #073052 0%, #081C42 100%) 0% 0% no-repeat padding-box",
+ boxShadow: "0px 3px 7px #00000014",
},
drawerPaperClose: {
overflowX: "hidden",
@@ -148,17 +151,15 @@ const styles = (theme: Theme) =>
width: theme.spacing(9),
},
},
- appBarSpacer: {
- height: "5px",
- },
content: {
flexGrow: 1,
height: "100vh",
overflow: "auto",
+ position: "relative",
},
container: {
- paddingTop: theme.spacing(4),
paddingBottom: theme.spacing(4),
+ margin: 0,
},
paper: {
padding: theme.spacing(2),
@@ -372,8 +373,7 @@ const Console = ({
)}
)}
-