Skip to content

Commit e65d47c

Browse files
committed
fix repos
1 parent 02723ca commit e65d47c

7 files changed

Lines changed: 27 additions & 27 deletions

File tree

applications/osb-portal/src/components/common/RepositoriesWorkspacesSearchField.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import { bgRegular, chipTextColor } from "../../theme";
1212
import styled from "@mui/system/styled";
1313
import { debounce } from "lodash";
1414

15-
const StyledTextField = styled(TextField)(({ theme }) => ({
15+
const StyledTextField = styled(TextField)({
1616
backgroundColor: bgRegular,
17-
padding: theme.spacing(1),
17+
padding: 1,
1818
marginRight: "0.286rem",
1919
"& .MuiSvgIcon-root": {
2020
width: "1.25rem",
@@ -31,12 +31,12 @@ const StyledTextField = styled(TextField)(({ theme }) => ({
3131
},
3232
},
3333
"& .MuiInputBase-input": {
34-
padding: theme.spacing(0),
34+
padding: 0,
3535
fontSize: ".88rem",
3636
color: chipTextColor,
3737
fontWeight: 500,
3838
},
39-
}));
39+
});
4040

4141
interface RepositoriesSearchProps {
4242
filterChanged: (newFilter: string) => void;

applications/osb-portal/src/components/common/SearchFilterReposWorkspaces.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ interface SearchReposWorkspacesProps {
4444
setLoading?: (loading: boolean) => void;
4545
}
4646

47-
const StyledLabel = styled(Typography)(({ theme }) => ({
47+
const StyledLabel = styled(Typography)({
4848
color: bgInputs,
4949
fontWeight: 700,
5050
fontSize: ".88rem",
51-
marginBottom: theme.spacing(1),
51+
marginBottom: 1,
5252
display: "inline-block",
53-
}));
53+
});
5454

55-
const StyledPopover = styled(Popover)(({ theme }) => ({
55+
const StyledPopover = styled(Popover)({
5656
"& .MuiPaper-root": {
5757
background: chipBg,
5858
minWidth: "350px !important",
59-
padding: theme.spacing(3),
59+
padding: 3,
6060
boxShadow: "0px 10px 60px rgba(0, 0, 0, 0.5)",
6161
"& .MuiSvgIcon-root": {
6262
cursor: "pointer",
@@ -68,7 +68,7 @@ const StyledPopover = styled(Popover)(({ theme }) => ({
6868
paddingBottom: 0,
6969
marginBottom: ".88rem",
7070
"& .MuiSvgIcon-root": {
71-
marginLeft: theme.spacing(1),
71+
marginLeft: 1,
7272
color: paragraph,
7373
},
7474
"& .MuiInputBase-root": {
@@ -86,7 +86,7 @@ const StyledPopover = styled(Popover)(({ theme }) => ({
8686
},
8787
},
8888
},
89-
}));
89+
});
9090

9191
const StyledFilterButton = styled(Button)({
9292
borderRadius: "0px 8px 8px 0px",

applications/osb-portal/src/components/common/ThumbnailUploadArea.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import { alpha } from "@mui/material/styles";
1515

1616
const MAX_ALLOWED_THUMBNAIL_SIZE = 1024 * 1024; // 1MB
1717

18-
export const StyledDropZoneBox = styled(Box)(({ theme }) => ({
18+
export const StyledDropZoneBox = styled(Box)({
1919
color: bgInputs,
2020
border: `2px dashed ${bgInputs}`,
2121
borderRadius: 5,
2222
padding: 4,
2323
"& .MuiTypography-subtitle2": {
24-
marginTop: theme.spacing(1),
25-
marginBottom: theme.spacing(2),
24+
marginTop: 1,
25+
marginBottom: 2,
2626
},
2727
"& .MuiButton-outlined": {
2828
margin: "0 auto",
@@ -32,7 +32,7 @@ export const StyledDropZoneBox = styled(Box)(({ theme }) => ({
3232
borderRadius: radius,
3333
border: `2px solid ${bgInputs}`,
3434
},
35-
}));
35+
});
3636

3737
export const StyledImagePreviewSection = styled("section")(() => ({
3838
display: "flex",

applications/osb-portal/src/components/repository/EditRepoDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const RepoSelect = styled(Select)(({ theme }) => ({
166166
},
167167

168168
"& .MuiSvgIcon-root": {
169-
right: theme.spacing(1),
169+
right: 1,
170170
},
171171
}));
172172

applications/osb-portal/src/components/repository/RepositoryPageBanner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ import CalendarTodayOutlinedIcon from "@mui/icons-material/CalendarTodayOutlined
2020
//types
2121
import { OSBRepository } from "../../apiclient/workspaces";
2222

23-
const RepoPageBannerBox = styled(Box)(({ theme }) => ({
23+
const RepoPageBannerBox = styled(Box)({
2424
display: "flex",
2525
flexDirection: "column",
2626
alignItems: "center",
2727
justifyContent: "center",
28-
padding: theme.spacing(5),
28+
padding: 5,
2929
minHeight: "200px",
3030

3131
"& .MuiChip-root": {
3232
background: chipBg,
3333
margin: "0.25rem",
3434
},
35-
}));
35+
});
3636

3737
const RepositoryPageBanner = ({
3838
repository,

applications/osb-portal/src/pages/UserGroupsPage.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ import LinkIcon from "@mui/icons-material/Link";
3434
import { RootState } from "../store/rootReducer";
3535

3636
const styles = {
37-
groupMembers: (theme) => ({
37+
groupMembers: {
3838
flexDirection: "column",
3939
paddingBottom: "0px !important",
4040
backgroundColor: bgDarker,
41-
}),
42-
profileInformation: (theme) => ({
41+
},
42+
profileInformation: {
4343
flexDirection: "column",
4444
backgroundColor: bgDarker,
4545
borderRight: `1px solid ${lineColor}`,
46-
paddingRight: theme.spacing(3),
46+
paddingRight: 3,
4747
overflowY: 'auto',
4848
maxHeight: "100%",
4949

@@ -59,7 +59,7 @@ const styles = {
5959
"& .MuiAvatar-root": {
6060
width: "150px",
6161
height: "150px",
62-
marginBottom: theme.spacing(2),
62+
marginBottom: 2,
6363
},
6464
"& .name": {
6565
color: textColor,
@@ -89,7 +89,7 @@ const styles = {
8989
marginLeft: 0,
9090
},
9191
},
92-
}),
92+
},
9393
dot: {
9494
height: "5px",
9595
width: "5px",
@@ -329,7 +329,7 @@ export const UserGroupsPage = () => {
329329
>
330330
<Box
331331
bgcolor={bgDarkest}
332-
px={(theme) => theme.spacing(4)}
332+
px={4}
333333
sx={{ borderBottom: `1px solid ${lineColor}` }}
334334
>
335335
<Tabs

applications/osb-portal/src/pages/UserPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ export const UserPage = () => {
663663
>
664664
<Box
665665
bgcolor={bgDarkest}
666-
px={(theme) => theme.spacing(4)}
666+
px={4}
667667
sx={{ borderBottom: `1px solid ${lineColor}` }}
668668
>
669669
<Tabs

0 commit comments

Comments
 (0)