From d80b2ad03898eb798f8c3c95a4c10bd119691e01 Mon Sep 17 00:00:00 2001 From: Sascha Date: Sun, 28 Mar 2021 11:02:48 +0200 Subject: Prevent page reload for redirecting components Link instantly to: - NewBugPage - BackToList --- webui/src/components/BackToListButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'webui/src/components/BackToListButton.tsx') diff --git a/webui/src/components/BackToListButton.tsx b/webui/src/components/BackToListButton.tsx index 7ca53ad0..41e1d68a 100644 --- a/webui/src/components/BackToListButton.tsx +++ b/webui/src/components/BackToListButton.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import { Link } from 'react-router-dom'; import Button from '@material-ui/core/Button'; import { makeStyles } from '@material-ui/core/styles'; @@ -25,7 +26,8 @@ function BackToListButton() { variant="contained" className={classes.backButton} aria-label="back to issue list" - href="/" + component={Link} + to="/" > Back to List -- cgit