mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
chore: dependency updates (#448)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { useHistory } from 'react-router';
|
||||
import { useNavigate } from 'react-router';
|
||||
import Welcome from './Welcome';
|
||||
import {
|
||||
Button,
|
||||
@@ -18,14 +18,14 @@ const Thumb: React.FC = ({
|
||||
link,
|
||||
className,
|
||||
}) => {
|
||||
const history = useHistory();
|
||||
const navigate = useNavigate();
|
||||
return (
|
||||
<Button
|
||||
size="large"
|
||||
icon={<Icon />}
|
||||
type="link"
|
||||
className={className}
|
||||
onClick={() => history.push(link)}
|
||||
onClick={() => navigate(link)}
|
||||
>
|
||||
{title}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user