Styled the admin button and added the button for come back to the game

This commit is contained in:
2021-10-21 22:38:19 -03:00
parent ba88fd2eb9
commit b76d35344d
5 changed files with 43 additions and 4 deletions

View File

@@ -1,11 +1,18 @@
import React from 'react'
import {withRouter} from 'react-router'
const AdminHeader = () => {
const AdminHeader = (props) => {
return (
<header>
<h1>Admin Place</h1>
<button
className="redirect-button"
onClick={() => props.history.push('/')}
>
Back to the Game
</button>
</header>
)
}
export default AdminHeader
export default withRouter(AdminHeader)