-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
244ac75
commit c07ca78
Showing
65 changed files
with
1,111 additions
and
572 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
30 changes: 0 additions & 30 deletions
30
frontend/apps/battleship-zk/src/app/utils/use-make-transaction.ts
This file was deleted.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
...eship-zk/src/features/game/components/game-cancelled-modal/GameCancelledModal.module.scss
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,17 @@ | ||
.content { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 24px; | ||
} | ||
|
||
.buttons { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
gap: 16px; | ||
|
||
& button { | ||
width: 100%; | ||
padding: 16px 10px; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
.../battleship-zk/src/features/game/components/game-cancelled-modal/game-cancelled-modal.tsx
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,23 @@ | ||
import { Text } from '@/components/ui/text'; | ||
import { Button } from '@gear-js/vara-ui'; | ||
import { useState } from 'react'; | ||
import { ModalBottom } from '@/components/ui/modal'; | ||
import styles from './GameCancelledModal.module.scss'; | ||
|
||
type Props = { | ||
text: string; | ||
onClose: () => void; | ||
}; | ||
|
||
export default function GameCancelledModal({ text, onClose }: Props) { | ||
return ( | ||
<ModalBottom heading="Game canceled" onClose={onClose}> | ||
<div className={styles.content}> | ||
<Text>{text}</Text> | ||
<div className={styles.buttons}> | ||
<Button color="dark" text="Exit" onClick={onClose} /> | ||
</div> | ||
</div> | ||
</ModalBottom> | ||
); | ||
} |
3 changes: 3 additions & 0 deletions
3
frontend/apps/battleship-zk/src/features/game/components/game-cancelled-modal/index.tsx
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,3 @@ | ||
import GameCancelledModal from './game-cancelled-modal'; | ||
|
||
export { GameCancelledModal }; |
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
1 change: 1 addition & 0 deletions
1
frontend/apps/battleship-zk/src/features/game/components/index.ts
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export { ShipArrangement } from './ship-arrangement'; | ||
export { GameProcess } from './game-process'; | ||
export { GameEndModal } from './game-end-modal'; | ||
export { GameCancelledModal } from './game-cancelled-modal'; | ||
export { Map } from './map'; | ||
export { Illustration } from './illustration'; |
Oops, something went wrong.