Skip to content

Commit cd5a3c7

Browse files
fagundesjgmarcodmc
authored andcommitted
Feat/back navigation to home (SOS-RS#177)
* feat: added back navigation to home when click in header label
1 parent c74c4a9 commit cd5a3c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Header/Header.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import { IHeader } from './types';
33
import { cn } from '@/lib/utils';
4+
import { Link } from 'react-router-dom';
45

56
const Header = React.forwardRef<HTMLDivElement, IHeader>((props, ref) => {
67
const {
@@ -27,7 +28,9 @@ const Header = React.forwardRef<HTMLDivElement, IHeader>((props, ref) => {
2728
>
2829
<div className="flex gap-1 items-center">
2930
{startAdornment}
30-
<h3 className="font-medium text-white">{title}</h3>
31+
<Link className="font-medium text-white" to="/">
32+
{title}
33+
</Link>
3134
</div>
3235
<div className="flex w-auto items-center justify-between">
3336
<div className="cursor-pointer">{endAdornment}</div>

0 commit comments

Comments
 (0)