added return button in thread

This commit is contained in:
plebbitor
2023-02-13 13:01:10 +01:00
parent 728f88be71
commit e0a86868b4
3 changed files with 148 additions and 8 deletions
+7 -2
View File
@@ -1,7 +1,7 @@
import React, { useState, useEffect, useContext } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import { Container, NavBar, Header, Break, PostForm, TopBar } from './styles/Board.styled';
import { ReplyFormTable, ReplyFormLink } from './styles/Thread.styled';
import { Container, NavBar, Header, Break, PostForm } from './styles/Board.styled';
import { ReplyFormTable, ReplyFormLink, TopBar } from './styles/Thread.styled';
import { BoardContext } from '../App';
import ImageBanner from './ImageBanner';
@@ -203,6 +203,11 @@ const Thread = ({ setBodyStyle }) => {
<option value="Photon">Photon</option>
</select>
</span>
<span className="return-button">
[
<Link to="/board">Return</Link>
]
</span>
<hr />
</TopBar>
</Container>