diff --git a/package-lock.json b/package-lock.json index 8606e784c..3a050a426 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27216,7 +27216,7 @@ "request-progress": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz", - "integrity": "sha1-TKdUCBx/7GP1BeT6qCWqBs1mnb4=", + "integrity": "sha512-MnWzEHHaxHO2iWiQuHrUPBi/1WeBf5PkxQqNyNvLl9VAYSdXkP8tQ3pBSeCPD+yw0v0Aq1zosWLz0BdeXpWwZg==", "dev": true, "requires": { "throttleit": "^1.0.0" diff --git a/src/components/MultiAutocompleteSelectField/MultiAutocompleteSelectField.tsx b/src/components/MultiAutocompleteSelectField/MultiAutocompleteSelectField.tsx index 7438158b6..c8b2a2043 100644 --- a/src/components/MultiAutocompleteSelectField/MultiAutocompleteSelectField.tsx +++ b/src/components/MultiAutocompleteSelectField/MultiAutocompleteSelectField.tsx @@ -235,7 +235,7 @@ const MultiAutocompleteSelectFieldComponent: React.FC diff --git a/src/components/PreviewPill/styles.ts b/src/components/PreviewPill/styles.ts index a07ba4279..61e0eafc7 100644 --- a/src/components/PreviewPill/styles.ts +++ b/src/components/PreviewPill/styles.ts @@ -3,7 +3,7 @@ import { makeStyles } from "@saleor/macaw-ui"; const useStyles = makeStyles( theme => ({ popper: { - zIndex: 11, + zIndex: 1302, }, tooltip: { // TO-FIX diff --git a/src/components/TablePagination/TablePaginationWithContext.tsx b/src/components/TablePagination/TablePaginationWithContext.tsx index 13489abd8..acde8edd3 100644 --- a/src/components/TablePagination/TablePaginationWithContext.tsx +++ b/src/components/TablePagination/TablePaginationWithContext.tsx @@ -36,15 +36,15 @@ export const TablePaginationWithContext = ( ); } - const { prevPageHref, nextPageHref } = paginationProps; + const { nextHref, prevHref } = paginationProps; return ( ); }; diff --git a/src/fixtures.ts b/src/fixtures.ts index d69ecc156..e67a1b3c6 100644 --- a/src/fixtures.ts +++ b/src/fixtures.ts @@ -309,8 +309,8 @@ export const paginatorContextValues: PaginatorContextValues = { startCursor: "", hasNextPage: false, hasPreviousPage: false, - nextPageHref: "", - prevPageHref: "", + nextHref: "", + prevHref: "", paginatorType: "link", }; diff --git a/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTable.tsx b/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTable.tsx index f6bc17024..a3dc5d50e 100644 --- a/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTable.tsx +++ b/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTable.tsx @@ -64,10 +64,6 @@ const GiftCardsListTable: React.FC = () => { } }); - const onLinkClick: React.MouseEventHandler = event => { - event.stopPropagation(); - }; - return ( @@ -141,9 +137,13 @@ const GiftCardsListTable: React.FC = () => { {product ? ( { + event.stopPropagation(); + navigate(productUrl(product?.id)); + }} > {product?.name} diff --git a/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTableHeader/GiftCardsListTableHeader.tsx b/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTableHeader/GiftCardsListTableHeader.tsx index c6494e70c..e6e94d566 100644 --- a/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTableHeader/GiftCardsListTableHeader.tsx +++ b/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTableHeader/GiftCardsListTableHeader.tsx @@ -101,7 +101,7 @@ const GiftCardsListTableHeader: React.FC = ({ - + diff --git a/src/giftCards/GiftCardsList/styles.ts b/src/giftCards/GiftCardsList/styles.ts index ba4ed44c2..9637f134d 100644 --- a/src/giftCards/GiftCardsList/styles.ts +++ b/src/giftCards/GiftCardsList/styles.ts @@ -16,9 +16,19 @@ export const useTableStyles = makeStyles( colBalance: { width: 135, }, + colProduct: { + width: 250, + }, colBase: { width: 150, }, + pill: { + display: "block", + textOverflow: "ellipsis", + whiteSpace: "nowrap", + maxWidth: "min-content", + overflow: "hidden", + }, row: { cursor: "pointer", height: 70, diff --git a/src/hooks/usePaginator.ts b/src/hooks/usePaginator.ts index ac849887b..bb06a6643 100644 --- a/src/hooks/usePaginator.ts +++ b/src/hooks/usePaginator.ts @@ -60,7 +60,7 @@ function usePaginator({ [paginationState, pageInfo], ); - const nextPageHref = useMemo(() => { + const nextHref = useMemo(() => { if (!newPageInfo?.hasNextPage || !pageInfo?.endCursor) { return undefined; } @@ -75,7 +75,7 @@ function usePaginator({ ); }, [pageInfo?.endCursor, newPageInfo?.hasNextPage, queryString]); - const prevPageHref = useMemo(() => { + const prevHref = useMemo(() => { if (!newPageInfo?.hasPreviousPage || !pageInfo?.startCursor) { return undefined; } @@ -90,8 +90,8 @@ function usePaginator({ }, [pageInfo?.startCursor, newPageInfo?.hasPreviousPage, queryString]); return { - nextPageHref, - prevPageHref, + nextHref, + prevHref, paginatorType: "link" as const, ...newPageInfo, }; @@ -110,15 +110,15 @@ export type PaginatorContextValues = PaginatorContextValuesCommon & ( | { paginatorType: "link"; - nextPageHref?: string; - prevPageHref?: string; + nextHref?: string; + prevHref?: string; loadNextPage?: never; loadPreviousPage?: never; } | { paginatorType: "click"; - nextPageHref?: never; - prevPageHref?: never; + nextHref?: never; + prevHref?: never; loadNextPage: () => void; loadPreviousPage: () => void; }