
* New ConfirmButton component * Update macaw ui * Remove old confim button * New confirm button * Replace all place with new confirm button * Remove ConfirmButtonTransitionState use from mcaw * Does not change button width when showing loader and success state * Test ConfirmButton * Remove story, update tests * WIP change pull_request to push for chromatic * Revert "WIP change pull_request to push for chromatic" This reverts commit 8f0909bf54f185898a7f1d236f072d6544fd5d86. * Add comments * Remove css prop from DialogTable * Make confirm button larger in order send refund
17 lines
560 B
TypeScript
17 lines
560 B
TypeScript
import { buttonMessages } from "@dashboard/intl";
|
|
import { Button, ButtonProps } from "@saleor/macaw-ui/next";
|
|
import React, { ReactNode } from "react";
|
|
import { FormattedMessage } from "react-intl";
|
|
|
|
interface BackButtonProps extends ButtonProps {
|
|
children?: ReactNode;
|
|
}
|
|
|
|
const BackButton: React.FC<BackButtonProps> = ({ children, ...props }) => (
|
|
<Button data-test-id="back" variant="secondary" {...props}>
|
|
{children ?? <FormattedMessage {...buttonMessages.back} />}
|
|
</Button>
|
|
);
|
|
|
|
BackButton.displayName = "BackButton";
|
|
export default BackButton;
|