-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58c4de5
commit cf5ed98
Showing
19 changed files
with
357 additions
and
237 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
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
import { useNavigate } from "react-router-dom"; | ||
import strokeLeft from '../../../public/img/icons/StrokeLeft.svg'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import strokeLeft from '../../../public/img/icons/StrokeLeft.svg'; | ||
import styles from './BackButton.module.scss'; | ||
|
||
export const BackButton = () => { | ||
const navigate = useNavigate(); | ||
const handleBackClick = () => { | ||
navigate(-1); | ||
} | ||
}; | ||
|
||
return ( | ||
<div className={styles.backButton}> | ||
<span className={styles.breadcrumbs__separator}>/</span> | ||
<a | ||
href="#" | ||
onClick={handleBackClick} | ||
aria-label="Go back" | ||
className={styles.backButton__link} | ||
> | ||
<span className={styles.breadcrumbs__icon}> | ||
<img src={strokeLeft} alt="Stroke left" /> | ||
</span> | ||
<span className={styles.breadcrumbs__text}>Back</span> | ||
</a> | ||
</div> | ||
) | ||
} | ||
<span className={styles.breadcrumbs__separator}>/</span> | ||
<a | ||
href="#" | ||
onClick={handleBackClick} | ||
aria-label="Go back" | ||
className={styles.backButton__link} | ||
> | ||
<span className={styles.breadcrumbs__icon}> | ||
<img src={strokeLeft} alt="Stroke left" /> | ||
</span> | ||
<span className={styles.breadcrumbs__text}>Back</span> | ||
</a> | ||
</div> | ||
); | ||
}; |
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
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
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 |
---|---|---|
|
@@ -20,5 +20,3 @@ export const Search: React.FC<SearchProps> = ({ value, onChange }) => { | |
</div> | ||
); | ||
}; | ||
|
||
|
Oops, something went wrong.