-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding go back button to pages expect home page of course
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Button } from "@/components/ui/button"; | ||
import { FaArrowLeft } from "react-icons/fa"; | ||
import { Link } from "react-router-dom"; | ||
|
||
const GoBack = () => { | ||
return ( | ||
<Link | ||
className={`flex items-center gap-1 fixed top-[20px] z-[0] left-0 px-2 xl:px-4`} | ||
to={"React-Projects/"} | ||
> | ||
<FaArrowLeft className="fill-foreground text-[16px] xl:text-[14px] 2xl:text-[18px]" /> | ||
<Button | ||
className="p-0 text-foreground hidden xl:block 2xl:text-[20px] font-light" | ||
variant="link" | ||
> | ||
Back | ||
</Button> | ||
</Link> | ||
); | ||
}; | ||
|
||
export default GoBack; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters