Skip to content

Commit

Permalink
fix: remove translations, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron authored and pavanjoshi914 committed Feb 28, 2024
1 parent 219ac44 commit 47a45bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 28 deletions.
23 changes: 7 additions & 16 deletions src/app/screens/Options/TestConnection/card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { useTranslation } from "react-i18next";

type Props = {
alias: string;
accountName: string;
Expand All @@ -17,22 +15,15 @@ export default function TestConnectionResultCard({
color,
currency,
}: Props) {
const { t } = useTranslation("translation", {
keyPrefix: "welcome.test_connection",
});
return (
<div className={`${color} rounded-lg py-6 dark:bg-gray-600`}>
<p className="font-normal text-black ml-6 dark:text-white break-words">
{t("account_name", { accountName })}
</p>
<p className="font-normal text-black ml-6 dark:text-white">
{t("alias", { alias })}
</p>
<p className="text-2xl font-bold text-black ml-6 mt-2 dark:text-white">
{satoshis}
</p>
<div
className={`${color} rounded-lg p-5 dark:bg-gray-600 text-black dark:text-white`}
>
<p className="break-words">{accountName}</p>
<p className="text-xs break-words">{alias}</p>
<p className="text-2xl font-bold mt-2">{satoshis}</p>
{fiat && currency && (
<p className="font-normal text-white ml-6 mt-1">
<p className="text-white mt-1">
{fiat} {currency}
</p>
)}
Expand Down
13 changes: 4 additions & 9 deletions src/app/screens/Options/TestConnection/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Button from "@components/Button";
import Loading from "@components/Loading";
import { PopiconsBadgeCheckSolid } from "@popicons/react";
import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
Expand Down Expand Up @@ -106,15 +107,9 @@ export default function TestConnection() {

{accountInfo && accountInfo.alias && (
<div>
<div className="flex space-x-2">
<h1 className="text-2xl font-bold text-green-bitcoin">
{tCommon("success")}
</h1>
<img
src="assets/icons/star.svg"
alt="image"
className="w-8"
/>
<div className="flex space-x-2 items-center text-green-bitcoin">
<PopiconsBadgeCheckSolid className="w-8 h-8" />
<h1 className="text-2xl font-bold">{tCommon("success")}</h1>
</div>

<p className="mt-6 dark:text-gray-400"></p>
Expand Down
4 changes: 1 addition & 3 deletions src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"contact_support": "If you need help please contact [email protected]",
"actions": {
"delete_edit_account": "Delete invalid account and edit again"
},
"account_name": "Account Name: {{accountName}}",
"alias": "Alias: {{alias}}"
}
},
"pin_extension": {
"title": "Pin your Alby extension",
Expand Down

0 comments on commit 47a45bf

Please sign in to comment.