Skip to content

Commit 1dc21b9

Browse files
authored
Removed TableWrapper (#3032)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent 248215c commit 1dc21b9

File tree

14 files changed

+65
-1202
lines changed

14 files changed

+65
-1202
lines changed

portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ListObjectsTable.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

17-
import { listModeColumns, rewindModeColumns } from "./ListObjectsHelpers";
18-
import { ItemActions } from "../../../../Common/TableWrapper/TableWrapper";
1917
import React, { useState } from "react";
18+
import { listModeColumns, rewindModeColumns } from "./ListObjectsHelpers";
2019
import makeStyles from "@mui/styles/makeStyles";
2120
import { Theme } from "@mui/material/styles";
2221
import createStyles from "@mui/styles/createStyles";
@@ -42,7 +41,7 @@ import {
4241
} from "../../../../../../common/SecureComponent/permissions";
4342
import { hasPermission } from "../../../../../../common/SecureComponent";
4443
import { downloadObject } from "../../../../ObjectBrowser/utils";
45-
import { DataTable } from "mds";
44+
import { DataTable, ItemActions } from "mds";
4645
import { BucketObject } from "api/consoleApi";
4746

4847
const useStyles = makeStyles((theme: Theme) =>
@@ -186,7 +185,7 @@ const ListObjectsTable = ({ internalPaths }: IListObjectTable) => {
186185
const tableActions: ItemActions[] = [
187186
{
188187
type: "view",
189-
label: "View",
188+
tooltip: "View",
190189
onClick: openPath,
191190
sendOnlyId: false,
192191
},

portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -140,25 +140,6 @@ export const checkboxIcons = {
140140
},
141141
};
142142

143-
const radioBasic = {
144-
width: 16,
145-
height: 16,
146-
borderRadius: "100%",
147-
"input:disabled ~ &": {
148-
border: "1px solid #E5E5E5",
149-
},
150-
padding: 1,
151-
};
152-
153-
export const radioIcons = {
154-
radioUnselectedIcon: { ...radioBasic, border: "2px solid #E5E5E5" },
155-
radioSelectedIcon: {
156-
...radioBasic,
157-
border: "2px solid #E5E5E5",
158-
backgroundColor: "#072C4F",
159-
},
160-
};
161-
162143
export const containerForHeader = {
163144
container: {
164145
position: "relative" as const,
@@ -665,13 +646,6 @@ export const inputFieldStyles = {
665646
},
666647
};
667648

668-
export const inlineCheckboxes = {
669-
inlineCheckboxes: {
670-
display: "flex",
671-
justifyContent: "flex-start",
672-
},
673-
};
674-
675649
const commonStateIcon = {
676650
marginRight: 10,
677651
lineHeight: 1,
@@ -933,14 +907,3 @@ export const twoColCssGridLayoutConfig = {
933907
gridAutoFlow: "dense",
934908
},
935909
};
936-
937-
// These classes are meant to be used as React.CSSProperties for TableWrapper
938-
export const TableRowPredefStyles: any = {
939-
deleted: {
940-
color: "#707070",
941-
backgroundColor: "#f1f0f0",
942-
"&.selected": {
943-
color: "#b2b2b2",
944-
},
945-
},
946-
};

portal-ui/src/screens/Console/Common/TableWrapper/TableActionButton.tsx

Lines changed: 0 additions & 161 deletions
This file was deleted.

portal-ui/src/screens/Console/Common/TableWrapper/TableActionIcons/CloudIcon.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

portal-ui/src/screens/Console/Common/TableWrapper/TableActionIcons/ConsoleIcon.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

portal-ui/src/screens/Console/Common/TableWrapper/TableActionIcons/DisableIcon.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

portal-ui/src/screens/Console/Common/TableWrapper/TableActionIcons/FormatDriveIcon.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

portal-ui/src/screens/Console/Common/TableWrapper/TableActionIcons/common.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)