Skip to content
Snippets Groups Projects
Commit c8717f24 authored by Simon Magnusson's avatar Simon Magnusson
Browse files

Got rid of some gunk, sam porter bridges

parent da8fb58c
No related branches found
No related tags found
No related merge requests found
......@@ -23,20 +23,7 @@ function PlayGamePage() {
<header className="App-header">
<Header pageTitle={pageTitle} />
<div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center', padding: '20px' }}>
<div style={{
boxShadow: '0 4px 8px 0 rgba(0,0,0,0.2)',
transition: '0.3s',
width: `${boardWidth}px`, // Dynamically set width
height: `100px`,
margin: '10px',
position: 'relative',
overflow: 'hidden',
borderRadius: '10px', // Rounded corners
}}>
<div>
</div>
</div>
<div style={{
boxShadow: '0 4px 8px 0 rgba(0,0,0,0.2)',
......
......@@ -8,33 +8,22 @@ function Header({pageTitle}) {
const dispatch=useDispatch();
function handleSignOut(){
signOut(auth).then(() => {
dispatch(setUser(null));
}).catch((error) => {
console.log(error);
});
}
return (
<>
<h1>{pageTitle}</h1>
<div className="header-btns">
<button onClick={handleSignOut} className="btn transparent">
Logout
</button>
</div>
</>
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '10px' }}>
<div style={{margin: '10px'}} ><h1>{pageTitle}</h1> </div>
<div>
<button onClick={handleSignOut} className="btn transparent">
Logout
</button>
</div>
</div>
)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment