Skip to content

Commit

Permalink
[release] 0.1.112
Browse files Browse the repository at this point in the history
  • Loading branch information
insraq committed Jan 17, 2024
1 parent 188dd20 commit 6023eac
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/scripts/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ export const EN = {
FirstTimeGuideNext: "Next",
FirstTimeGuideFinish: "Finish",
AccountTypeShowDetails: "Show Account Details",
PlayerHandleOffline: "You are currently offline",
AccountType: "Account Type",
AccountTypeOnline: "Online",
AccountTypeDesc:
Expand Down
40 changes: 21 additions & 19 deletions src/scripts/ui/PlayerHandleComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,34 @@ export function PlayerHandleComponent() {
return (
<fieldset>
<legend>{t(L.PlayerHandle)}</legend>
<div className="row mv5">
<div className="text-strong">{user?.handle}</div>
<div>
{user == null ? (
<div className="text-strong">{t(L.PlayerHandleOffline)}</div>
) : (
<div className="row">
<div className="text-strong">{user?.handle}</div>
<img
className="ml5 player-flag"
src={getFlagUrl(user?.flag)}
title={getCountryName(user?.flag)}
/>
<div className="f1" />
<div
className={classNames("text-link text-strong", { disabled: !user })}
onClick={() => {
if (user) {
showModal(<ChangePlayerHandleModal />);
} else {
playError();
}
}}
>
{t(L.ChangePlayerHandle)}
</div>
</div>
<div className="f1" />
<div
className={classNames("text-link text-strong", { disabled: !user })}
onClick={() => {
if (user) {
showModal(<ChangePlayerHandleModal />);
} else {
playError();
}
}}
>
{t(L.ChangePlayerHandle)}
</div>
</div>
)}
{showDetails ? (
<>
<div className="separator"></div>
<div className="separator" />
<div className="row text-strong">
<div className="f1">{t(L.AccountType)}</div>
{opt.isOffline ? null : <div className="m-icon small mr5 text-green">wifi</div>}
Expand All @@ -57,7 +59,7 @@ export function PlayerHandleComponent() {
<div className="text-desc text-small text-justify">{t(L.ThisRunTypeDesc)}</div>
</>
) : (
<div className="text-small text-link" onClick={() => setShowDetails(true)}>
<div className="text-small text-link mt5" onClick={() => setShowDetails(true)}>
{t(L.AccountTypeShowDetails)}
</div>
)}
Expand Down

0 comments on commit 6023eac

Please sign in to comment.