This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/leaderboard-wallet-integration…
…' into leaderboard-wallet-integrationv2
- Loading branch information
Showing
16 changed files
with
511 additions
and
132 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,28 @@ | ||
import React from "react"; | ||
import styles from "./style.module.css"; | ||
|
||
interface Props { | ||
onCancel: () => void; | ||
onReset: () => void; | ||
} | ||
|
||
export default function ConfirmModal({ onCancel, onReset }: Props) { | ||
return ( | ||
<> | ||
<div className={styles.blurContainer} onClick={onCancel}></div> | ||
<div className={styles.modalContainer}> | ||
<p className={styles.title}>Reseting progress!</p> | ||
It may take up to minute! <br /> | ||
Are you sure you want to continue? | ||
<div className={styles.buttons}> | ||
<button className={styles.cancelBtn} onClick={onCancel}> | ||
Cancel | ||
</button> | ||
<button className={styles.resetBtn} onClick={onReset}> | ||
Reset | ||
</button> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
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,63 @@ | ||
.blurContainer { | ||
position: absolute; | ||
height: 100vh; | ||
width: 100vw; | ||
overflow: hidden; | ||
top: 0; | ||
left: 0; | ||
background: rgba(0, 0, 0, 0.7); | ||
z-index: 1000; | ||
} | ||
|
||
.modalContainer { | ||
position: absolute; | ||
width: 350px; | ||
height: 200px; | ||
top: calc(50% - 100px); | ||
left: calc(50% - 175px); | ||
background-color: #ffffff; | ||
padding: 20px; | ||
border-radius: 8px; | ||
text-align: center; | ||
z-index: 1001; | ||
} | ||
|
||
.title { | ||
font-size: 18px; | ||
font-weight: 600; | ||
} | ||
|
||
.buttons { | ||
margin-top: 20px; | ||
display: flex; | ||
justify-content: center; | ||
gap: 20px; | ||
} | ||
|
||
.cancelBtn { | ||
font-size: 14px; | ||
font-weight: 500; | ||
font-family: var(--ifm-font-family-base); | ||
background-color: transparent; | ||
color: #369ea7; | ||
border-radius: 4px; | ||
border: 1px solid #369ea7; | ||
padding: 12px 8px; | ||
line-height: 0.8; | ||
width: max-content; | ||
cursor: pointer; | ||
} | ||
|
||
.resetBtn { | ||
font-size: 14px; | ||
font-weight: 500; | ||
font-family: var(--ifm-font-family-base); | ||
background-color: transparent; | ||
color: #df0101; | ||
border-radius: 4px; | ||
border: 1px solid #df0101; | ||
padding: 12px 8px; | ||
line-height: 0.8; | ||
width: max-content; | ||
cursor: pointer; | ||
} |
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,5 @@ | ||
export const FUTURENET_DETAILS = { | ||
network: "FUTURENET", | ||
networkUrl: "https://horizon-futurenet.stellar.org", | ||
networkPassphrase: "Test SDF Future Network ; October 2022", | ||
}; |
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
Oops, something went wrong.