diff --git a/src/pages/sponsors-global/inventory/inventory-list-page.js b/src/pages/sponsors-global/inventory/inventory-list-page.js
index a3ba172f5..edb95cc3e 100644
--- a/src/pages/sponsors-global/inventory/inventory-list-page.js
+++ b/src/pages/sponsors-global/inventory/inventory-list-page.js
@@ -12,20 +12,12 @@
* */
import React, { useEffect, useState } from "react";
-import {
- Alert,
- Button,
- Checkbox,
- FormControlLabel,
- FormGroup,
- Grid2
-} from "@mui/material";
-import Box from "@mui/material/Box";
+import { Alert, Box, Button } from "@mui/material";
import AddIcon from "@mui/icons-material/Add";
-import SearchInput from "openstack-uicore-foundation/lib/components/mui/search-input";
import { connect } from "react-redux";
import T from "i18n-react/dist/i18n-react";
import MuiTable from "openstack-uicore-foundation/lib/components/mui/table";
+import GridToolbar from "../../../components/mui/grid-toolbar";
import {
archiveInventoryItem,
deleteInventoryItemImage,
@@ -165,7 +157,6 @@ const InventoryListPage = ({
{
columnKey: "hasImage",
header: "",
- width: 40,
align: "center",
render: (row) => {
const img = row.images?.[0];
@@ -202,68 +193,28 @@ const InventoryListPage = ({
>
{T.translate("inventory_item_list.alert_info")}
-
-
- {totalInventoryItems} items
-
- handleNewInventoryItem()}
+ startIcon={}
>
-
-
- }
- label={T.translate("inventory_item_list.show_archived")}
- />
-
-
-
-
-
-
-
+ {T.translate("inventory_item_list.add_inventory_item")}
+
+
+
{totalInventoryItems} items
{inventoryItems.length > 0 && (
diff --git a/src/pages/sponsors-global/page-templates/page-template-list-page.js b/src/pages/sponsors-global/page-templates/page-template-list-page.js
index f3ffedc6b..e58044600 100644
--- a/src/pages/sponsors-global/page-templates/page-template-list-page.js
+++ b/src/pages/sponsors-global/page-templates/page-template-list-page.js
@@ -12,20 +12,13 @@
* */
import React, { useEffect, useState } from "react";
-import {
- Alert,
- Button,
- Checkbox,
- FormControlLabel,
- FormGroup,
- Grid2
-} from "@mui/material";
+import { Alert, Button } from "@mui/material";
import Box from "@mui/material/Box";
import AddIcon from "@mui/icons-material/Add";
import { connect } from "react-redux";
import T from "i18n-react/dist/i18n-react";
import MuiTable from "openstack-uicore-foundation/lib/components/mui/table";
-import SearchInput from "openstack-uicore-foundation/lib/components/mui/search-input";
+import GridToolbar from "../../../components/mui/grid-toolbar";
import {
archivePageTemplate,
deletePageTemplate,
@@ -203,64 +196,36 @@ const PageTemplateListPage = ({
{T.translate("page_template_list.alert_info")}
-
-
- {totalPageTemplates} pages
-
- }
>
-
-
- }
- label={T.translate("page_template_list.show_archived")}
- />
-
-
-
-
- }
- >
- {T.translate("page_template_list.add_template")}
-
- }
- >
- {T.translate("page_template_list.add_new")}
-
-
-
+ {T.translate("page_template_list.add_template")}
+
+ }
+ >
+ {T.translate("page_template_list.add_new")}
+
+
+ {totalPageTemplates} pages
{pageTemplates.length === 0 && (
diff --git a/src/pages/sponsors/show-pages-list-page/__tests__/show-pages-list-page.test.js b/src/pages/sponsors/show-pages-list-page/__tests__/show-pages-list-page.test.js
index 4ada962ec..8f50169df 100644
--- a/src/pages/sponsors/show-pages-list-page/__tests__/show-pages-list-page.test.js
+++ b/src/pages/sponsors/show-pages-list-page/__tests__/show-pages-list-page.test.js
@@ -275,7 +275,7 @@ describe("ShowPagesListPage", () => {
}
}
);
- const archiveButton = screen.getByText("general.archive");
+ const archiveButton = screen.getByTestId("action-archive");
await act(async () => {
await userEvent.click(archiveButton);
});
@@ -295,7 +295,7 @@ describe("ShowPagesListPage", () => {
}
}
);
- const unarchiveButton = screen.getByText("general.unarchive");
+ const unarchiveButton = screen.getByTestId("action-archive");
await act(async () => {
await userEvent.click(unarchiveButton);
});
diff --git a/src/pages/sponsors/show-pages-list-page/index.js b/src/pages/sponsors/show-pages-list-page/index.js
index b93ad1914..56d523783 100644
--- a/src/pages/sponsors/show-pages-list-page/index.js
+++ b/src/pages/sponsors/show-pages-list-page/index.js
@@ -15,17 +15,10 @@ import React, { useEffect, useState } from "react";
import { connect } from "react-redux";
import T from "i18n-react/dist/i18n-react";
import { Breadcrumb } from "react-breadcrumbs";
-import {
- Box,
- Button,
- Checkbox,
- FormControlLabel,
- FormGroup,
- Grid2
-} from "@mui/material";
+import { Box, Button } from "@mui/material";
import AddIcon from "@mui/icons-material/Add";
import MuiTable from "openstack-uicore-foundation/lib/components/mui/table";
-import SearchInput from "openstack-uicore-foundation/lib/components/mui/search-input";
+import GridToolbar from "../../../components/mui/grid-toolbar";
import {
archiveShowPage,
deleteShowPage,
@@ -203,68 +196,36 @@ const ShowPagesListPage = ({
{T.translate("show_pages.pages")}
-
-
-
- {totalCount} {T.translate("show_pages.pages")}
-
-
-
-
-
- }
- label={T.translate("show_pages.show_archived")}
- />
-
-
-
-
-
-
-
-
-
- }
- sx={{ height: "36px" }}
- >
- {T.translate("show_pages.new_page")}
-
-
-
+
+
}
+ >
+ {T.translate("show_pages.new_page")}
+
+
+
+ {totalCount} {T.translate("show_pages.pages")}
+
{showPages.length === 0 && (
{T.translate("show_pages.no_sponsors_pages")}
diff --git a/src/pages/sponsors/show-purchase-list-page/index.js b/src/pages/sponsors/show-purchase-list-page/index.js
index c20075a68..0688f7108 100644
--- a/src/pages/sponsors/show-purchase-list-page/index.js
+++ b/src/pages/sponsors/show-purchase-list-page/index.js
@@ -19,14 +19,13 @@ import {
Box,
Button,
CircularProgress,
- Grid2,
IconButton,
MenuItem,
Select
} from "@mui/material";
import DownloadIcon from "@mui/icons-material/Download";
import MuiTable from "openstack-uicore-foundation/lib/components/mui/table";
-import SearchInput from "openstack-uicore-foundation/lib/components/mui/search-input";
+import GridToolbar from "../../../components/mui/grid-toolbar";
import history from "../../../history";
import {
approveSponsorPurchase,
@@ -116,13 +115,14 @@ const ShowPurchaseListPage = ({
{
columnKey: "purchased",
header: T.translate("sponsor_show_purchases.purchased"),
- width: 200,
- sortable: true
+ sortable: true,
+ cellSx: { maxWidth: { md: 120, lg: 180 } }
},
{
columnKey: "sponsor_name",
header: T.translate("sponsor_show_purchases.sponsor"),
- sortable: true
+ sortable: true,
+ cellSx: { maxWidth: 200 }
},
{
columnKey: "payment_method",
@@ -171,8 +171,9 @@ const ShowPurchaseListPage = ({
{
columnKey: "details",
header: "",
- width: 100,
align: "center",
+ width: 86,
+ cellSx: { p: 0 },
render: (row) => (