Skip to content

Commit

Permalink
Remove unused CSS Classes (#2623)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvaldivia authored Feb 2, 2023
1 parent f337a8d commit 8d4d6ea
Show file tree
Hide file tree
Showing 56 changed files with 9 additions and 720 deletions.
13 changes: 0 additions & 13 deletions portal-ui/src/screens/Console/Account/AddServiceAccountScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,6 @@ interface IAddServiceAccountProps {

const styles = (theme: Theme) =>
createStyles({
bottomContainer: {
display: "flex",
flexGrow: 1,
alignItems: "center",
margin: "auto",
justifyContent: "center",
"& div": {
width: 150,
"@media (max-width: 900px)": {
flexFlow: "column",
},
},
},
...formFieldStyles,
...modalStyleUtils,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,6 @@ export interface ITiersDropDown {

const styles = (theme: Theme) =>
createStyles({
dateSelector: {
"& div": {
borderBottom: 0,
marginBottom: 0,

"& div:nth-child(2)": {
border: "1px solid #EAEAEA",
paddingLeft: 5,

"& div": {
border: 0,
},
},
},
},
formFieldRowFilter: {
"& .MuiPaper-root": { padding: 0 },
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,6 @@ const styles = (theme: Theme) =>
display: "flex",
alignItems: "center",
},
sizeFactorContainer: {
"& label": {
display: "none",
},
"& div:first-child": {
marginBottom: 0,
"@media (max-width: 600px)": {
marginTop: "7px",
},
},
},
...spacingUtils,
...createTenantCommon,
...formFieldStyles,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ const styles = (theme: Theme) =>
pageContainer: {
height: "100%",
},
screenTitle: {
border: 0,
paddingTop: 0,
},
...pageContentStyles,
...searchField,
capitalize: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,6 @@ import { useAppDispatch } from "../../../../store";

const styles = (theme: Theme) =>
createStyles({
dateSelector: {
"& div": {
borderBottom: 0,
marginBottom: 0,

"& div:nth-child(2)": {
border: "1px solid #EAEAEA",
paddingLeft: 5,

"& div": {
border: 0,
},
},
},
},
formFieldRowAccordion: {
"& .MuiPaper-root": { padding: 0 },
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ interface IEditReplicationModal {

const styles = (theme: Theme) =>
createStyles({
sizeFactorContainer: {
"& label": {
display: "none",
},
"& div:first-child": {
marginBottom: 0,
},
},
...spacingUtils,
...createTenantCommon,
...formFieldStyles,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,6 @@ const styles = (theme: Theme) =>
marginRight: 10,
},
},
title: {
marginBottom: 8,
},
headTitle: {
fontWeight: "bold",
fontSize: 16,
paddingLeft: 8,
},
h6title: {
fontWeight: "bold",
color: "#000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,6 @@ import { setLoadingObjects } from "../../ObjectBrowser/objectBrowserSlice";

const styles = (theme: Theme) =>
createStyles({
bulkSelect: {
marginLeft: 8,
"&:hover": {
backgroundColor: theme.palette.primary.main,
},
"&.MuiButton-contained": {
backgroundColor: theme.palette.primary.main,
},
},
bucketList: {
marginTop: 25,
height: "calc(100vh - 211px)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,6 @@ interface IObjectMetadata {

const styles = (theme: Theme) =>
createStyles({
propertiesIcon: {
marginLeft: 5,
"& .min-icon": {
height: 12,
},
},

capitalizeFirst: {
textTransform: "capitalize",
"& .min-icon": {
width: 16,
height: 16,
},
},
titleItem: {
width: "35%",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ const styles = (theme: Theme) =>
minWidth: 250,
},
},
copyShareLinkBtn: {
display: "flex",
alignItems: "center",
justifyContent: "center",
"@media (max-width: 900px)": {
marginTop: 10,
},
},
...modalStyleUtils,
...formFieldStyles,
});
Expand Down
31 changes: 2 additions & 29 deletions portal-ui/src/screens/Console/Common/ComponentsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,13 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

import React, { Fragment, useState } from "react";
import { containerForHeader } from "../Common/FormComponents/common/styleLibrary";
import { Theme } from "@mui/material/styles";
import createStyles from "@mui/styles/createStyles";
import withStyles from "@mui/styles/withStyles";
import { DialogContentText, Grid } from "@mui/material";
import PageLayout from "./Layout/PageLayout";
import SectionTitle from "./SectionTitle";
import { Button, ConfirmDeleteIcon, PageHeader } from "mds";
import ConfirmDialog from "./ModalWrapper/ConfirmDialog";

interface IComponentsScreen {
classes: any;
}

const styles = (theme: Theme) =>
createStyles({
...containerForHeader(theme.spacing(4)),
root: {
fontSize: 12,
wordWrap: "break-word",
"& .min-loader": {
width: 45,
height: 45,
},
},
def: {},
red: {
"& .min-icon": {
color: "red",
},
},
});

const ComponentsScreen = ({ classes }: IComponentsScreen) => {
const ComponentsScreen = () => {
const [dialogOpen, setDialogOpen] = useState<boolean>(false);
return (
<Fragment>
Expand Down Expand Up @@ -97,4 +70,4 @@ const ComponentsScreen = ({ classes }: IComponentsScreen) => {
);
};

export default withStyles(styles)(ComponentsScreen);
export default ComponentsScreen;
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,13 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

import React from "react";
import { Theme } from "@mui/material/styles";
import { Button, OpenListIcon, SyncIcon } from "mds";
import { Box, Grid } from "@mui/material";
import createStyles from "@mui/styles/createStyles";
import withStyles from "@mui/styles/withStyles";
import ScheduleIcon from "@mui/icons-material/Schedule";
import WatchLaterIcon from "@mui/icons-material/WatchLater";
import { actionsTray, widgetContainerCommon } from "../common/styleLibrary";
import DateTimePickerWrapper from "../DateTimePickerWrapper/DateTimePickerWrapper";

interface IDateRangeSelector {
classes: any;
timeStart: any;
setTimeStart: (date: any) => void;
timeEnd: any;
Expand All @@ -37,27 +32,6 @@ interface IDateRangeSelector {
endLabel?: string;
}

const styles = (theme: Theme) =>
createStyles({
...actionsTray,
...widgetContainerCommon,
schedulerIcon: {
opacity: 0.4,
fontSize: 10,
"& svg": {
width: 18,
height: 18,
},
},
selectorLabel: {
color: "#9D9E9D",
fontWeight: "bold",
whiteSpace: "nowrap",
marginLeft: 10,
fontSize: 12,
},
});

const DateFilterAdornIcon = () => {
return (
<Box
Expand All @@ -76,7 +50,6 @@ const DateFilterAdornIcon = () => {
};

const DateRangeSelector = ({
classes,
timeStart,
setTimeStart,
timeEnd,
Expand Down Expand Up @@ -279,4 +252,4 @@ const DateRangeSelector = ({
);
};

export default withStyles(styles)(DateRangeSelector);
export default DateRangeSelector;
1 change: 0 additions & 1 deletion portal-ui/src/screens/Console/Common/IconsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const styles = (theme: Theme) =>
height: 45,
},
},
def: {},
red: {
"& .min-icon": {
color: "red",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ const styles = (theme: Theme) =>
createStyles({
...actionsTray,
...widgetContainerCommon,
dashboardRow: {
display: "flex",
flexDirection: "row",
justifyContent: "flex-start",
flexWrap: "wrap",
},
});

const PrDashboard = ({ apiPrefix = "admin", usage }: IPrDashboard) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ interface ILinearGraphWidget {
const styles = (theme: Theme) =>
createStyles({
...widgetCommon,
verticalAlignment: {
flexDirection: "column",
},
chartCont: {
position: "relative",
height: 140,
Expand Down
3 changes: 0 additions & 3 deletions portal-ui/src/screens/Console/DirectPV/FormatErrorsResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ interface IFormatErrorsProps {

const styles = (theme: Theme) =>
createStyles({
buttonContainer: {
textAlign: "right",
},
errorsList: {
height: "calc(100vh - 280px)",
},
Expand Down
13 changes: 0 additions & 13 deletions portal-ui/src/screens/Console/Groups/AddGroupScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,6 @@ interface IAddGroupProps {

const styles = (theme: Theme) =>
createStyles({
bottomContainer: {
display: "flex",
flexGrow: 1,
alignItems: "center",
margin: "auto",
justifyContent: "center",
"& div": {
width: 150,
"@media (max-width: 900px)": {
flexFlow: "column",
},
},
},
...formFieldStyles,
...modalStyleUtils,
});
Expand Down
25 changes: 2 additions & 23 deletions portal-ui/src/screens/Console/IDP/AddIDPLDAPConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,13 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

import React from "react";

import { Theme } from "@mui/material/styles";
import createStyles from "@mui/styles/createStyles";
import withStyles from "@mui/styles/withStyles";
import LoginIcon from "@mui/icons-material/Login";
import {
formFieldStyles,
modalBasic,
} from "../Common/FormComponents/common/styleLibrary";
import { IAM_PAGES } from "../../../common/SecureComponent/permissions";
import AddIDPConfiguration from "./AddIDPConfiguration";
import { ldapFormFields, ldapHelpBoxContents } from "./utils";
import AddIDPConfigurationHelpBox from "./AddIDPConfigurationHelpbox";

type AddIDPLDAPConfigurationProps = {
classes?: any;
};

const styles = (theme: Theme) =>
createStyles({
...formFieldStyles,
formFieldRow: {
...formFieldStyles.formFieldRow,
},
...modalBasic,
});

const AddIDPLDAPConfiguration = ({ classes }: AddIDPLDAPConfigurationProps) => {
const AddIDPLDAPConfiguration = () => {
return (
<AddIDPConfiguration
icon={<LoginIcon />}
Expand All @@ -65,4 +44,4 @@ const AddIDPLDAPConfiguration = ({ classes }: AddIDPLDAPConfigurationProps) => {
);
};

export default withStyles(styles)(AddIDPLDAPConfiguration);
export default AddIDPLDAPConfiguration;
Loading

0 comments on commit 8d4d6ea

Please sign in to comment.