aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/PasteInfo.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/PasteInfo.js')
-rw-r--r--frontend/src/components/PasteInfo.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/components/PasteInfo.js b/frontend/src/components/PasteInfo.js
index 6ab5b19..2f912fb 100644
--- a/frontend/src/components/PasteInfo.js
+++ b/frontend/src/components/PasteInfo.js
@@ -1,8 +1,8 @@
import React from 'react';
import styled from 'styled-components'
-import { useHistory } from 'react-router-dom';
import { Theme } from './Inputs'
import {Button} from "./Common/Button";
+import {useRouter} from "next/router";
const Bold = styled.span`
font-weight: 700
@@ -28,10 +28,10 @@ const Flex = styled.div`
`
const PasteInfo = (props) => {
- const history = useHistory();
+ const router = useRouter()
const redirRaw = () => {
const redirUrl = `/raw/${props.hash}`
- history.push(redirUrl);
+ router.push(redirUrl);
}
const renderable = () => {