mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
back link icon change
This commit is contained in:
1 parent
7d440a724e
commit
6a5c85b525
1 file changed
+3
-2
@@ -1,6 +1,7 @@
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { BackButtonIcon } from "../_icons/BackButtonIcon";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faArrowLeft } from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
interface Props {
|
||||
link: string;
|
||||
@@ -11,7 +12,7 @@ function BackLink(props: Props) {
|
||||
const linkText = props.text === undefined ? "Back" : props.text;
|
||||
return (
|
||||
<Link to={props.link}>
|
||||
<BackButtonIcon title={linkText} />
|
||||
<FontAwesomeIcon icon={faArrowLeft} />
|
||||
<span className="ms-2">{linkText}</span>
|
||||
</Link>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user