diff --git a/webui/src/pages/bug/BackButton.tsx b/webui/src/components/BackToListButton/BackToListButton.tsx similarity index 92% rename from webui/src/pages/bug/BackButton.tsx rename to webui/src/components/BackToListButton/BackToListButton.tsx index 4c73dd0aedafa9ce2e2bb6e854a14f3cf785a804..7ca53ad05ae8595c7790500d7322d1a0e9aa0d21 100644 --- a/webui/src/pages/bug/BackButton.tsx +++ b/webui/src/components/BackToListButton/BackToListButton.tsx @@ -17,7 +17,7 @@ const useStyles = makeStyles((theme) => ({ }, })); -function BackButton() { +function BackToListButton() { const classes = useStyles(); return ( @@ -33,4 +33,4 @@ function BackButton() { ); } -export default BackButton; +export default BackToListButton; diff --git a/webui/src/pages/bug/Bug.tsx b/webui/src/pages/bug/Bug.tsx index aa6247f2f5594cb872fe00177be9634270d6797f..9ce2f6a67cb11720f1a5c62c558a02b6487a9a82 100644 --- a/webui/src/pages/bug/Bug.tsx +++ b/webui/src/pages/bug/Bug.tsx @@ -2,11 +2,11 @@ import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; +import BackToListButton from '../../components/BackToListButton/BackToListButton'; import BugTitleForm from 'src/components/BugTitleForm/BugTitleForm'; import IfLoggedIn from 'src/components/IfLoggedIn/IfLoggedIn'; import Label from 'src/components/Label'; -import BackButton from './BackButton'; import { BugFragment } from './Bug.generated'; import CommentForm from './CommentForm'; import TimelineQuery from './TimelineQuery'; @@ -88,7 +88,7 @@ function Bug({ bug }: Props) {