Skip to content
Snippets Groups Projects
Commit 39e1e3e7 authored by Edvard Dønvold Sjøborg's avatar Edvard Dønvold Sjøborg
Browse files

changed navigation button to arrown icon

parent dd6c5161
No related branches found
No related tags found
No related merge requests found
import React, {useContext} from 'react';
import usePoetry from "./usePoetry";
import {PageContext} from "./MainPage";
import leftarrow from "../Media/left-arrow.png";
import rightarrow from "../Media/right-arrow.png";
type props = {
direction: string;
......@@ -16,8 +18,13 @@ const NavButton = (props: props) => {
};
return (
<button onClick={onClick}>{props.direction}</button>
<img
src={props.direction === "right" ? rightarrow : leftarrow}
style={{ width: '4rem', height: '4rem' }}
onClick={onClick}
/>
// <button onClick={onClick}>{props.direction}</button>
)
};
export default NavButton;
\ No newline at end of file
export default NavButton;
frontend/src/Media/left-arrow.png

6.82 KiB

frontend/src/Media/right-arrow.png

2.58 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment