Skip to content

Commit

Permalink
Replace create category button (#5222)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky authored Oct 21, 2024
1 parent c7e506a commit 9c3a7dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-cameras-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Now the create category button is consistent with the other views
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ import { categoryAddUrl, CategoryListUrlSortField } from "@dashboard/categories/
import SearchInput from "@dashboard/components/AppLayout/ListFilters/components/SearchInput";
import { TopNav } from "@dashboard/components/AppLayout/TopNav";
import { BulkDeleteButton } from "@dashboard/components/BulkDeleteButton";
import { Button } from "@dashboard/components/Button";
import { DashboardCard } from "@dashboard/components/Card";
import { FilterPresetsSelect } from "@dashboard/components/FilterPresetsSelect";
import { ListPageLayout } from "@dashboard/components/Layouts";
import { CategoryFragment } from "@dashboard/graphql";
import { sectionNames } from "@dashboard/intl";
import { PageListProps, SearchPageProps, SortPage, TabPageProps } from "@dashboard/types";
import { Box, ChevronRightIcon } from "@saleor/macaw-ui-next";
import { Box, Button, ChevronRightIcon } from "@saleor/macaw-ui-next";
import React, { useState } from "react";
import { FormattedMessage, useIntl } from "react-intl";

Expand Down Expand Up @@ -78,7 +77,7 @@ export const CategoryListPage: React.FC<CategoryTableProps> = ({
/>
</Box>

<Button variant="primary" href={categoryAddUrl()} data-test-id="create-category">
<Button href={categoryAddUrl()} data-test-id="create-category">
<FormattedMessage {...messages.createCategory} />
</Button>
</Box>
Expand Down

0 comments on commit 9c3a7dc

Please sign in to comment.