Skip to content

Commit a507ce7

Browse files
fix(common): update BackButton.tsx to accept string or Location
1 parent 00099e4 commit a507ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elements/common/nav-button/BackButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import './BackButton.scss';
1111

1212
export interface BackButtonProps {
1313
className?: string;
14-
to?: Location;
14+
to?: string | Location;
1515
}
1616

1717
const BackButton = ({ className, to, ...rest }: BackButtonProps) => (

0 commit comments

Comments
 (0)