-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement sidebar to display stats when clicking on game header (closes
#10).
- Loading branch information
Showing
6 changed files
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React, {ReactElement} from 'react'; | ||
import {Menu, Sidebar} from 'semantic-ui-react'; | ||
import Players from '../round/Players'; | ||
|
||
export default function ExtraSidebar({visible, close}: { visible: boolean; close: () => void }): ReactElement { | ||
return <Sidebar | ||
as={Menu} | ||
animation='overlay' | ||
icon='labeled' | ||
inverted | ||
onHide={close} | ||
vertical | ||
visible={visible} | ||
direction='left' | ||
> | ||
<div className={'GameExtraSidebarWrapper'}> | ||
<Players/> | ||
</div> | ||
</Sidebar>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters