mirror of
https://github.com/FranP-code/Hangman-game-with-React.git
synced 2025-10-13 00:42:32 +00:00
Styled the admin button and added the button for come back to the game
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user