Skip to content

Commit 1342547

Browse files
committed
Fix copy story text and copy story url buttons icons
1 parent 4e77452 commit 1342547

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/Story/Share/ButtonWithSuccessTooltip.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ interface Props extends ButtonProps {
1313

1414
const TOOLTIP_HIDE_DELAY = 3000;
1515

16-
export function ButtonWithSuccessTooltip({ children, onClick, successMessage }: Props) {
16+
export function ButtonWithSuccessTooltip({
17+
children,
18+
onClick,
19+
successMessage,
20+
...restProps
21+
}: Props) {
1722
const [isTooltipShown, setIsTooltipShown] = useState(false);
1823

1924
async function handleClick() {
@@ -27,8 +32,8 @@ export function ButtonWithSuccessTooltip({ children, onClick, successMessage }:
2732
<Button
2833
className={styles.button}
2934
disabled={isTooltipShown}
30-
variation="secondary"
3135
onClick={handleClick}
36+
{...restProps}
3237
>
3338
{children}
3439
</Button>

0 commit comments

Comments
 (0)