Skip to content

Commit

Permalink
Update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdfx committed Dec 18, 2024
1 parent 505c80e commit df03327
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion scripts/post-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function writeManifestFile(targetPath, fileContent) {

(async () => {
try {
const id = "1001";
const id = "1003";

const chromeFileName = `${pck.name}-chrome-edge-${pck.version}-${id}`;
const firefoxFileName = `${pck.name}-firefox-${pck.version}-${id}`;
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,5 @@
"tokens": "tokens",
"noTxHistory": "No transaction history",
"updateAccount": "Account dismatch, please switch account and try again.",
"mneTip":"I have {{count}} mnemonic phrases."
"mneTip":"I have {{count}} mnemonic phrases"
}
2 changes: 1 addition & 1 deletion src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,5 @@
"balance": "Баланс",
"updateTokenInfo": "Обновить информацию о токенах?",
"noTxHistory": "История транзакций отсутствует",
"mneTip":"У меня есть {{count}} мнемонических фраз."
"mneTip":"У меня есть {{count}} мнемонических фраз"
}
2 changes: 1 addition & 1 deletion src/i18n/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,5 @@
"updateTokenInfo": "Jeton bilgilerinizi güncellemek ister misiniz?",
"tokens": "TOKENS",
"noTxHistory": "İşlem geçmişi yok",
"mneTip":"{{count}} tane hafıza kelimesine sahibim."
"mneTip":"{{count}} tane hafıza kelimesine sahibim"
}
2 changes: 1 addition & 1 deletion src/i18n/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,5 @@
"updateTokenInfo": "Оновити інформацію про токен?",
"noTxHistory": "Історія транзакцій відсутня",
"tokens": "TOKENS",
"mneTip":"Я маю {{count}} мнемонічних фраз."
"mneTip":"Я маю {{count}} мнемонічних фраз"
}
6 changes: 3 additions & 3 deletions src/i18n/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@
"available": "可用",
"contributeLanguage": "贡献语言",
"pinExtension": "固定 Auro Wallet",
"clickBrowser": "点击<icon/>在浏览器中",
"clickButton": "然后<icon/>点击按钮",
"clickBrowser": "在浏览器中点击<icon/>",
"clickButton": "然后点击按钮<icon/>",
"addAccount": "添加账户",
"createAccount": "创建账户",
"hardwareWallet": "硬件钱包",
Expand All @@ -296,5 +296,5 @@
"updateTokenInfo": "更新您的代币信息?",
"noTxHistory": "没有交易历史",
"tokens": "TOKENS",
"mneTip":"我有{{count}}个助记词"
"mneTip":"我有{{count}}个助记词"
}
22 changes: 13 additions & 9 deletions src/popup/pages/CreateProcessPage/RestoreMneView.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const StyledProcessTitle = styled.div`
font-size: 24px;
font-weight: 700;
margin-bottom: 40px;
display: flex;
align-items: center;
justify-content: space-between;
`;

const StyledBottomContainer = styled.div`
Expand Down Expand Up @@ -61,14 +64,13 @@ const StyledBottomMneContainer = styled.div`
flex-wrap: wrap;
gap: 12px 20px;
`;
const StyledRowSwitch = styled.div`
const StyledRowSwitch = styled.span`
color: #594af1;
font-size: 14px;
font-weight: 500;
cursor: pointer;
display: flex;
align-items: center;
justify-content: flex-end;
position: absolute;
right: 40px;
`;

export const RestoreMneView = ({
Expand Down Expand Up @@ -102,7 +104,7 @@ export const RestoreMneView = ({
let nextCount = mneCount == 12 ? 24 : 12;
setMenCount(nextCount);
setMneInputList(Array(nextCount).fill(""));

setSimilarWordList([]);
if (onSwitchMneCount) {
onSwitchMneCount(nextCount == 24);
}
Expand Down Expand Up @@ -196,11 +198,13 @@ export const RestoreMneView = ({
<StyledPwdContainer>
<BackView onClickBack={onClickPre} />
<StyledPwdContentContainer>
<StyledProcessTitle>{i18n.t("restoreWallet")}</StyledProcessTitle>
<StyledProcessTitle>
{i18n.t("restoreWallet")}
<StyledRowSwitch onClick={onSwitch}>
{i18n.t("mneTip", { count: mneCount == 12 ? 24 : 12 })}
</StyledRowSwitch>
</StyledProcessTitle>

<StyledRowSwitch onClick={onSwitch}>
{i18n.t("mneTip", { count: mneCount == 12 ? 24 : 12 })}
</StyledRowSwitch>
<StyledMneTip>{i18n.t("inputSeed")}</StyledMneTip>
<StyledTopMneContainer>
{mneInputList.map((mne, index) => {
Expand Down

0 comments on commit df03327

Please sign in to comment.