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
Branches
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,7 +18,12 @@ 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>
)
};
......
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.
Please to comment