1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 23:04:21 +00:00

🔧 Rename GoBackButton to GoUpButton

This commit is contained in:
Steffo 2021-10-15 18:08:13 +02:00 committed by Stefano Pigozzi
parent 4d9ea5cc8d
commit 07fe793192
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ import {useSophonPath} from "../../hooks/useSophonPath"
* *
* @constructor * @constructor
*/ */
export function GoBackButton({onClick, ...props}: Omit<ButtonProps, "children">): JSX.Element { export function GoUpButton({onClick, ...props}: Omit<ButtonProps, "children">): JSX.Element {
const location = useSophonPath() const location = useSophonPath()
const onClickWrapped = React.useCallback( const onClickWrapped = React.useCallback(

View file

@ -2,7 +2,7 @@ import {faAngleDoubleRight, faBug} from "@fortawesome/free-solid-svg-icons"
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome" import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
import {Box, Button, Form} from "@steffo/bluelib-react" import {Box, Button, Form} from "@steffo/bluelib-react"
import * as React from "react" import * as React from "react"
import {GoBackButton} from "../elements/GoBackButton" import {GoUpButton} from "../elements/GoUpButton"
import {NavigateButton} from "../elements/NavigateButton" import {NavigateButton} from "../elements/NavigateButton"
@ -49,7 +49,7 @@ export class ErrorCatcherBox extends React.Component<ErrorCatcherBoxProps, Error
<NavigateButton href={"https://github.com/Steffo99/sophon/issues/new?assignees=&labels=bug&template=1_bug_report.md&title="}> <NavigateButton href={"https://github.com/Steffo99/sophon/issues/new?assignees=&labels=bug&template=1_bug_report.md&title="}>
<FontAwesomeIcon icon={faBug}/>&nbsp;Report bug <FontAwesomeIcon icon={faBug}/>&nbsp;Report bug
</NavigateButton> </NavigateButton>
<GoBackButton/> <GoUpButton/>
<Button onClick={this.clearError}> <Button onClick={this.clearError}>
<FontAwesomeIcon icon={faAngleDoubleRight}/>&nbsp;Try ignoring the error <FontAwesomeIcon icon={faAngleDoubleRight}/>&nbsp;Try ignoring the error
</Button> </Button>