-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/browser-ui-update' into feature/ui-update-va…
…lidation-delegation # Conflicts: # packages/browser-wallet/src/popup/shell/i18n/locales/en.ts
- Loading branch information
Showing
32 changed files
with
510 additions
and
81 deletions.
There are no files selected for viewing
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
5 changes: 5 additions & 0 deletions
5
packages/browser-wallet/src/popup/popupX/page-layouts/MainLayout/Header/i18n/da.ts
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 @@ | ||
import type en from './en'; | ||
|
||
const t: typeof en = {}; | ||
|
||
export default t; |
15 changes: 15 additions & 0 deletions
15
packages/browser-wallet/src/popup/popupX/page-layouts/MainLayout/Header/i18n/en.ts
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,15 @@ | ||
const t = { | ||
menu: { | ||
identities: 'Identities', | ||
accounts: 'Accounts', | ||
seedPhrase: 'Seed phrase', | ||
passcode: 'Passcode', | ||
web3Id: 'Web3 ID', | ||
earn: 'Earn', | ||
network: 'Network', | ||
about: 'About', | ||
restore: 'Restore', | ||
}, | ||
}; | ||
|
||
export default t; |
22 changes: 22 additions & 0 deletions
22
packages/browser-wallet/src/popup/popupX/pages/About/About.scss
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,22 @@ | ||
.about-x { | ||
.page__main { | ||
.card-x .row { | ||
justify-content: space-between; | ||
} | ||
|
||
.text__main_medium { | ||
color: $color-white; | ||
} | ||
|
||
.heading_medium { | ||
margin-top: rem(24px); | ||
margin-bottom: rem(8px); | ||
} | ||
} | ||
|
||
.page__footer { | ||
.capture__main_small { | ||
text-align: center; | ||
} | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
packages/browser-wallet/src/popup/popupX/pages/About/About.tsx
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,78 @@ | ||
import { useTranslation } from 'react-i18next'; | ||
import Page from '@popup/popupX/shared/Page'; | ||
import Button from '@popup/popupX/shared/Button'; | ||
import ArrowSquare from '@assets/svgX/arrow-square-out.svg'; | ||
import React from 'react'; | ||
import Card from '@popup/popupX/shared/Card'; | ||
import Text from '@popup/popupX/shared/Text'; | ||
import { getVersionName } from '@shared/utils/environment-helpers'; | ||
import { useAtomValue } from 'jotai'; | ||
import { acceptedTermsAtom } from '@popup/store/settings'; | ||
import urls from '@shared/constants/url'; | ||
|
||
// Start saving the URL for the T&C we get from the wallet proxy, | ||
// and use that in the About page link. | ||
function useGetTermsUrl() { | ||
const { loading: loadingAcceptedTerms, value: acceptedTerms } = useAtomValue(acceptedTermsAtom); | ||
|
||
if (loadingAcceptedTerms) { | ||
return ''; | ||
} | ||
|
||
return acceptedTerms?.url || urls.termsAndConditions; | ||
} | ||
|
||
export default function About() { | ||
const { t } = useTranslation('x', { keyPrefix: 'aboutPage' }); | ||
const termsUrl = useGetTermsUrl(); | ||
|
||
return ( | ||
<Page className="about-x"> | ||
<Page.Top heading={t('about')} /> | ||
<Page.Main> | ||
<Card> | ||
<Card.Row> | ||
<Text.MainMedium>{t('documentation')}</Text.MainMedium> | ||
<Text.ExternalLink path={urls.documentationWebsite}> | ||
<Button.Icon className="transparent" icon={<ArrowSquare />} /> | ||
</Text.ExternalLink> | ||
</Card.Row> | ||
<Card.Row> | ||
<Text.MainMedium>{t('forum')}</Text.MainMedium> | ||
<Text.ExternalLink path={urls.supportWebsite}> | ||
<Button.Icon className="transparent" icon={<ArrowSquare />} /> | ||
</Text.ExternalLink> | ||
</Card.Row> | ||
<Card.Row> | ||
<Text.MainMedium>{t('website')}</Text.MainMedium> | ||
<Text.ExternalLink path={urls.website}> | ||
<Button.Icon className="transparent" icon={<ArrowSquare />} /> | ||
</Text.ExternalLink> | ||
</Card.Row> | ||
<Card.Row> | ||
<Text.MainMedium>{t('termsAndConditions')}</Text.MainMedium> | ||
<Text.ExternalLink path={termsUrl}> | ||
<Button.Icon className="transparent" icon={<ArrowSquare />} /> | ||
</Text.ExternalLink> | ||
</Card.Row> | ||
<Card.Row> | ||
<Text.MainMedium>{t('licence')}</Text.MainMedium> | ||
<Text.ExternalLink path={urls.licenseAttributions}> | ||
<Button.Icon className="transparent" icon={<ArrowSquare />} /> | ||
</Text.ExternalLink> | ||
</Card.Row> | ||
</Card> | ||
<Text.Heading>{t('support')}</Text.Heading> | ||
<Text.Capture> | ||
{t('supportDescription')} | ||
<Text.ExternalLink path="mailto:[email protected]"> | ||
[email protected] | ||
</Text.ExternalLink> | ||
</Text.Capture> | ||
</Page.Main> | ||
<Page.Footer> | ||
<Text.Capture>{t('version', { version: getVersionName() })}</Text.Capture> | ||
</Page.Footer> | ||
</Page> | ||
); | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/browser-wallet/src/popup/popupX/pages/About/i18n/da.ts
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 @@ | ||
import type en from './en'; | ||
|
||
const t: typeof en = {}; | ||
|
||
export default t; |
13 changes: 13 additions & 0 deletions
13
packages/browser-wallet/src/popup/popupX/pages/About/i18n/en.ts
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,13 @@ | ||
const t = { | ||
about: 'About', | ||
documentation: 'Concordium documentation', | ||
forum: 'Concordium support forum', | ||
website: 'Visit the Concordium website', | ||
termsAndConditions: 'Terms and conditions', | ||
licence: 'Licence notices', | ||
support: 'Support', | ||
supportDescription: 'If you encountered a problem, or need help with something, you can reach out us via ', | ||
version: 'Version {{ version }}', | ||
}; | ||
|
||
export default t; |
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 @@ | ||
export { default } from './About'; |
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
2 changes: 2 additions & 0 deletions
2
packages/browser-wallet/src/popup/popupX/pages/NetworkSettings/i18n/en.ts
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
const t = { | ||
networkSettings: 'Network settings', | ||
connected: 'Connected', | ||
connect: 'Connect', | ||
}; | ||
|
||
export default t; |
Oops, something went wrong.