Skip to content

Commit

Permalink
♻️ Replace read only button with X to close the modal
Browse files Browse the repository at this point in the history
  • Loading branch information
GianfrancoBazzani committed Sep 2, 2024
1 parent 436115d commit 22d4ee3
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 68 deletions.
8 changes: 5 additions & 3 deletions client/src/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ class App extends React.Component {
{/*not Account Connected window*/}
<div className="account-connection-window-bg">
<div className="account-connection-window">
<button
className="account-connection-close-x fas fa-x "
onClick={this.continueInReadOnly}
>
</button>
<h1>{randBadIcon()}</h1>
<br />
<h2>{strings.accountNotConnectedTitle}</h2>
Expand All @@ -237,9 +242,6 @@ class App extends React.Component {
>
{strings.connectAccount}
</button>
<button className="buttons" onClick={this.continueInReadOnly}>
{strings.continueInReadOnly}
</button>
</div>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/ar/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "احصل على نسخة جديدة",
"accountNotConnectedTitle": "حساب MetaMask غير متصل",
"accountNotConnectedMessage": "لبدء مغامرتك، قم بتوصيل محفظة MetaMask الخاصة بك! تتفاعل لعبتنا بشكل مباشر مع عقود Ethernaut على السلسلة، مما يعني أن أفعالك في اللعبة مسجلة على blockchain. من خلال ربط حساب MetaMask الخاص بك، يمكنك التفاعل بأمان مع هذه العقود الذكية، مما يسمح لك بحل التحديات والتقدم في اللعبة.",
"continueInReadOnly" : "متابعة في القراءة فقط",
"connectAccount": "يتصل",
"deployMessageTitle": "لم يتم نشر اللعبة",
"deployMessage": "تدُعم اللُعبة حاليًا هذه الشبكات فقط:",
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/en/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "Get new instance",
"accountNotConnectedTitle": "MetaMask account not connected",
"accountNotConnectedMessage": "To begin your adventure, connect your MetaMask wallet! Our game interacts directly with Ethernaut on-chain contracts, which means that your actions in the game are recorded on the blockchain. By linking your MetaMask account, you can securely engage with these smart contracts, allowing you to solve challenges, and progress in the game.",
"continueInReadOnly" : "Continue in read-only",
"connectAccount": "Connect",
"deployMessageTitle": "Game not deployed",
"deprecatedNetwork": "Network deprecated",
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/es/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "Nueva instancia",
"accountNotConnectedTitle": "Cuenta MetaMask no conectada",
"accountNotConnectedMessage": "Para comenzar tu aventura, conecta tu billetera MetaMask. Nuestro juego interactúa directamente con los contratos en cadena de Ethernaut, lo que significa que tus acciones en el juego quedan registradas en la cadena de bloques. Al vincular tu cuenta MetaMask, puedes interactuar de forma segura con estos contratos inteligentes, lo que te permite resolver desafíos y progresar en el juego.",
"continueInReadOnly" : "Modo solo lectura",
"connectAccount": "Conectar",
"deployMessageTitle": "Juego no desplegado",
"deprecatedNetwork": "Red obsoleta",
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/fr/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "Créer une nouvelle instance",
"accountNotConnectedTitle": "Compte MetaMask non connecté",
"accountNotConnectedMessage": "Pour commencer votre aventure, connectez votre portefeuille MetaMask ! Notre jeu interagit directement avec les contrats on-chain d'Ethernaut, ce qui signifie que vos actions dans le jeu sont enregistrées sur la blockchain. En liant votre compte MetaMask, vous pouvez interagir en toute sécurité avec ces contrats intelligents, vous permettant de résoudre des défis et de progresser dans le jeu.",
"continueInReadOnly" : "mode lecture seule",
"connectAccount": "Connecter",
"deployMessageTitle": "Jeu non déployé",
"deprecatedNetwork": "Réseau obsolète",
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/ja/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "インスタンスの生成",
"accountNotConnectedTitle": "MetaMask アカウントが接続されていません",
"accountNotConnectedMessage": "冒険を始めるには、MetaMask ウォレットを接続してください。私たちのゲームは Ethernaut オンチェーン コントラクトと直接やり取りします。つまり、ゲーム内でのアクションはブロックチェーンに記録されます。MetaMask アカウントをリンクすることで、これらのスマート コントラクトに安全に関与し、課題を解決してゲームを進めることができます。",
"continueInReadOnly" : "読み取り専用モード",
"connectAccount": "接続する",
"deployMessageTitle": "ゲームが展開されていません",
"deployMessage": "現在、ゲームはこれらのネットワークのみをサポートしています:",
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/pt_br/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "Obter nova instância",
"accountNotConnectedTitle": "Conta MetaMask não ligada",
"accountNotConnectedMessage": "Para começar a sua aventura, ligue a sua carteira MetaMask! O nosso jogo interage diretamente com os contratos on-chain do Ethernaut, o que significa que as suas ações no jogo são registadas na blockchain. Ao ligar a sua conta MetaMask, pode interagir com segurança com estes contratos inteligentes, permitindo-lhe resolver desafios e progredir no jogo.",
"continueInReadOnly" : "modo de leitura apenas",
"connectAccount": "Ligar",
"deployMessageTitle": "Jogo não implantado",
"deprecatedNetwork": "Rede obsoleta",
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/ru/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "Создать новый инстанс",
"accountNotConnectedTitle": "Учетная запись MetaMask не подключена",
"accountNotConnectedMessage": "Чтобы начать приключение, подключите свой кошелек MetaMask! Наша игра напрямую взаимодействует с ончейн-контрактами Ethernaut, что означает, что ваши действия в игре записываются в блокчейн. Подключив свой аккаунт MetaMask, вы можете безопасно взаимодействовать с этими смарт-контрактами, что позволит вам решать задачи и продвигаться в игре.",
"continueInReadOnly" : "режим только для чтения",
"connectAccount": "Bağlamak",
"deployMessageTitle": "Игра не развернута",
"deprecatedNetwork": "заброшенная сеть",
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/tr/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "Yeni durum al",
"accountNotConnectedTitle": "MetaMask hesabı bağlı değil",
"accountNotConnectedMessage": "Maceranıza başlamak için MetaMask cüzdanınızı bağlayın! Oyunumuz doğrudan Ethernaut zincir üstü sözleşmeleriyle etkileşime girer, bu da oyundaki eylemlerinizin blok zincirinde kaydedildiği anlamına gelir. MetaMask hesabınızı bağlayarak bu akıllı sözleşmelerle güvenli bir şekilde etkileşime girebilir, zorlukları çözebilir ve oyunda ilerleyebilirsiniz.",
"continueInReadOnly" : "salt okunur modu",
"connectAccount": "Bağlamak",
"deployMessageTitle": "Oyun dağıtılmadı",
"deprecatedNetwork": "Ağ kullanımdan kaldırıldı",
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/zh_cn/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "生成新实例",
"accountNotConnectedTitle": "MetaMask 帐户未连接",
"accountNotConnectedMessage": "要开始您的冒险,请连接您的 MetaMask 钱包!我们的游戏直接与 Ethernaut 链上合约交互,这意味着您在游戏中的行为会记录在区块链上。通过链接您的 MetaMask 帐户,您可以安全地与这些智能合约互动,从而让您解决​​挑战并在游戏中取得进展。",
"continueInReadOnly" : "只读模式",
"connectAccount": "连接",
"deployMessageTitle": "Game not deployed",
"deprecatedNetwork": "Network deprecated",
Expand Down
1 change: 0 additions & 1 deletion client/src/gamedata/zh_tw/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"getNewInstance": "產生新實例",
"accountNotConnectedTitle": "MetaMask 帳戶未連接",
"accountNotConnectedMessage": "要開始您的冒險,請連接您的 MetaMask 錢包!我們的遊戲直接與 Ethernaut 鏈上合約交互,這意味著您在遊戲中的行為都會記錄在區塊鏈上。透過連結您的 MetaMask 帳戶,您可以安全地使用這些智能合約,從而解決挑戰並在遊戲中取得進展。",
"continueInReadOnly" : "唯讀模式",
"connectAccount": "連接",
"deployMessageTitle": "遊戲未部署",
"deprecatedNetwork": "網路已棄用",
Expand Down
Loading

0 comments on commit 22d4ee3

Please sign in to comment.