Skip to content

Commit

Permalink
Correct names on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
128f committed May 22, 2022
1 parent 3265d80 commit 8531a14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const useWindowStyles = (width: number, height: number) => createUseStyles({
});

function Window(props: {
title: string,
closeWindow: () => void,
dimension: {
w: number,
Expand All @@ -56,7 +57,7 @@ function Window(props: {
>
<div className={classes.window}>
<div className={"titleBar " + classes.titleBar}>
<div className={classes.title}>Chess</div>
<div className={classes.title}>{props.title}</div>
<div onClick={props.closeWindow} className={classes.closeButton}>X</div>
</div>
<iframe className={classes.windowBody} src={props.src} />
Expand Down Expand Up @@ -89,12 +90,14 @@ function App() {
<div>
<div className={classes.windowSpawner}>
{isChessOpen && <Window
title="Chess"
closeWindow={()=>setIsChessOpen(false)}
dimension={{w: 320, h: 320}}
src="https://cburke.me/chess/index.html"
/>
}
{isPokerOpen && <Window
title="Video Poker"
closeWindow={()=>setIsPokerOpen(false)}
dimension={{w: 500, h: 200}}
src="https://cburke.me/poker/index.html"
Expand Down

0 comments on commit 8531a14

Please sign in to comment.