Skip to content

Commit

Permalink
Update add tracking button (#5346)
Browse files Browse the repository at this point in the history
* Replace buttons in order tracking

* Add changeset
  • Loading branch information
poulch committed Jan 16, 2025
1 parent c9df392 commit cb5fd4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-pens-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Add tracking button on order details uses button from new macaw
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// @ts-strict-ignore
import { Button } from "@dashboard/components/Button";
import { FulfillmentStatus } from "@dashboard/graphql";
import { buttonMessages, commonMessages } from "@dashboard/intl";
import { orderPaymentRefundUrl } from "@dashboard/orders/urls";
import { CardActions } from "@material-ui/core";
import { Text } from "@saleor/macaw-ui-next";
import { Button, Text } from "@saleor/macaw-ui-next";
import React from "react";
import { FormattedMessage } from "react-intl";

Expand Down Expand Up @@ -49,7 +48,7 @@ const ActionButtons: React.FC<AcionButtonsProps> = ({

return (
<CardActions className={classes.actions}>
<Button color="primary" onClick={onApprove} disabled={cannotFulfill}>
<Button variant="primary" onClick={onApprove} disabled={cannotFulfill}>
<FormattedMessage {...buttonMessages.approve} />
</Button>
{cannotFulfill && (
Expand Down

0 comments on commit cb5fd4f

Please sign in to comment.