Skip to content

Commit

Permalink
Merge pull request #941 from keyiiiii/fix-snackbar-textlink-type
Browse files Browse the repository at this point in the history
fix(spindle-ui): Fix snackbar/textlink type
  • Loading branch information
herablog authored Mar 25, 2024
2 parents d40e1b7 + b89ad4f commit 71c1689
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/spindle-ui/src/SnackBar/SnackBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React, {
Dispatch,
FC,
HTMLAttributes,
AnchorHTMLAttributes,
MouseEventHandler,
ReactNode,
SetStateAction,
Expand Down Expand Up @@ -182,7 +183,10 @@ const TextButton: FC<
);
};
const TextLink: FC<
{ icon?: ReactNode; children: ReactNode } & HTMLAttributes<HTMLAnchorElement>
{
icon?: ReactNode;
children: ReactNode;
} & AnchorHTMLAttributes<HTMLAnchorElement>
> = ({ icon, children, onClick, ...rest }) => {
const [props, internalProps] = useMemo(
() => convertInternalChildProps(rest),
Expand Down

0 comments on commit 71c1689

Please sign in to comment.