Skip to content

Commit d3756c3

Browse files
authored
Merge pull request Emurgo#3242 from Emurgo/release/4.22.0
Release/4.22.0
2 parents fe802c0 + e984112 commit d3756c3

File tree

68 files changed

+985
-962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+985
-962
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,17 @@ jobs:
181181
working-directory: ../trezor-user-env
182182
run: cp -rf src/binaries/firmware/bin/trezor-emu-core-v2-master ./
183183

184-
- name: Copy the trezord-go-v2.0.31 to the root of the project
184+
- name: Copy the trezord-go-v2.0.32 to the root of the project
185185
working-directory: ../trezor-user-env
186-
run: cp -rf src/binaries/trezord-go/bin/trezord-go-v2.0.31 ./
186+
run: cp -rf src/binaries/trezord-go/bin/trezord-go-v2.0.32 ./
187187

188188
- name: Create the logs folder in the root of the trezor-user-env
189189
working-directory: ../trezor-user-env
190190
run: mkdir logs
191191

192192
- name: Run the trezor user environment
193193
working-directory: ../trezor-user-env
194-
run: sudo docker run -p 9001:9001 -p 9002:9002 -p 21326:21326 -p 127.0.0.1:21325:21326 -p 21324:21324 -v logs:/trezor-user-env/logs/screens -v trezor-emu-core-v2-master:/trezor-user-env/src/binaries/firmware/bin/user_downloaded -v trezord-go-v2.0.31:/trezor-user-env/src/binaries/trezord-go/bin -d emurgornd/trezor-user-env:latest
194+
run: sudo docker run -p 9001:9001 -p 9002:9002 -p 21326:21326 -p 127.0.0.1:21325:21326 -p 21324:21324 -v logs:/trezor-user-env/logs/screens -v trezor-emu-core-v2-master:/trezor-user-env/src/binaries/firmware/bin/user_downloaded -v trezord-go-v2.0.32:/trezor-user-env/src/binaries/trezord-go/bin -d emurgornd/trezor-user-env:latest
195195

196196
- uses: actions/checkout@v3
197197

crowdin.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ files:
1717
it: it-IT
1818
sk: sk-SK
1919
cs: cs-CZ
20+
vi: vi-VN
2021
- source: /packages/yoroi-extension/app/i18n/locales/**/en-US.md
2122
translation: /packages/yoroi-extension/app/i18n/locales/**/%locale%.md
2223
languages_mapping:
@@ -34,4 +35,5 @@ files:
3435
it: it-IT
3536
sk: sk-SK
3637
cs: cs-CZ
38+
vi: vi-VN
3739
content_segmentation: 0

install-all.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
npm i \
22
&& npm i --prefix packages/yoroi-extension \
33
&& npm i --prefix packages/yoroi-connector \
4-
&& npm i --prefix packages/yoroi-connector/example-ergo \
54
&& npm i --prefix packages/yoroi-connector/example-cardano

packages/yoroi-extension/app/App.js

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,9 @@ import { observer } from 'mobx-react';
55
import { Router } from 'react-router-dom';
66
import type { RouterHistory } from 'react-router-dom';
77
import { addLocaleData, IntlProvider } from 'react-intl';
8-
import en from 'react-intl/locale-data/en';
9-
import ko from 'react-intl/locale-data/ko';
10-
import ja from 'react-intl/locale-data/ja';
11-
import zh from 'react-intl/locale-data/zh';
12-
import ru from 'react-intl/locale-data/ru';
13-
import de from 'react-intl/locale-data/de';
14-
import fr from 'react-intl/locale-data/fr';
15-
import nl from 'react-intl/locale-data/nl';
16-
import pt from 'react-intl/locale-data/pt';
17-
import id from 'react-intl/locale-data/id';
18-
import es from 'react-intl/locale-data/es';
19-
import it from 'react-intl/locale-data/it';
20-
import tr from 'react-intl/locale-data/tr';
21-
import cs from 'react-intl/locale-data/cs';
22-
import sk from 'react-intl/locale-data/sk';
238
import { observable, autorun, runInAction } from 'mobx';
249
import { Routes } from './Routes';
25-
import { translations } from './i18n/translations';
10+
import { locales, translations } from './i18n/translations';
2611
import type { StoresMap } from './stores';
2712
import type { ActionsMap } from './actions';
2813
import { changeToplevelTheme, MuiThemes } from './styles/utils';
@@ -39,23 +24,7 @@ import Support from './components/widgets/Support';
3924
import { trackNavigation } from './api/analytics';
4025

4126
// https://github.com/yahoo/react-intl/wiki#loading-locale-data
42-
addLocaleData([
43-
...en,
44-
...ko,
45-
...ja,
46-
...zh,
47-
...ru,
48-
...de,
49-
...fr,
50-
...nl,
51-
...pt,
52-
...id,
53-
...es,
54-
...it,
55-
...tr,
56-
...cs,
57-
...sk,
58-
]);
27+
addLocaleData(locales);
5928

6029
type Props = {|
6130
+stores: StoresMap,
Lines changed: 46 additions & 0 deletions
Loading

packages/yoroi-extension/app/components/topbar/SidebarRevamp.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ import styles from './SidebarRevamp.scss';
77
import type { SidebarCategoryRevamp } from '../../stores/stateless/sidebarCategories';
88
import { intlShape } from 'react-intl';
99
import type { $npm$ReactIntl$IntlFormat } from 'react-intl';
10-
import { ReactComponent as yoroiLogo } from '../../assets/images/sidebar/yoroi_logo.inline.svg';
10+
import { ReactComponent as YoroiLogo } from '../../assets/images/sidebar/yoroi_logo.inline.svg';
1111
import globalMessages from '../../i18n/global-messages';
1212

1313
type Props = {|
1414
+children?: ?Node,
1515
+categories?: Array<SidebarCategoryRevamp>,
1616
+isActiveCategory?: SidebarCategoryRevamp => boolean,
1717
+onCategoryClicked?: SidebarCategoryRevamp => void,
18+
+onLogoClick?: void => void,
1819
|};
1920

2021
@observer
@@ -28,23 +29,30 @@ export default class SidebarRevamp extends Component<Props> {
2829
children: void,
2930
isActiveCategory: void,
3031
onCategoryClicked: void,
32+
onLogoClick: void,
3133
|} = {
3234
children: undefined,
3335
categories: undefined,
3436
isActiveCategory: undefined,
3537
onCategoryClicked: undefined,
38+
onLogoClick: undefined,
3639
};
3740

3841
render(): Node {
3942
const { intl } = this.context;
40-
const { categories, isActiveCategory, onCategoryClicked } = this.props;
41-
const YoroiLogo = yoroiLogo;
43+
const { categories, isActiveCategory, onCategoryClicked, onLogoClick } = this.props;
4244

4345
return (
4446
<div className={styles.wrapper}>
4547
{this.props.children}
4648
<div className={styles.header}>
47-
<YoroiLogo />
49+
{onLogoClick ? (
50+
<button type="button" onClick={onLogoClick}>
51+
<YoroiLogo />
52+
</button>
53+
) : (
54+
<YoroiLogo />
55+
)}
4856
</div>
4957
<div className={styles.categories}>
5058
{categories
@@ -68,8 +76,8 @@ export default class SidebarRevamp extends Component<Props> {
6876
</div>
6977
<a
7078
className={styles.faq}
71-
href='https://emurgohelpdesk.zendesk.com/hc/en-us/categories/4412619927695-Yoroi'
72-
target='_blank'
79+
href="https://emurgohelpdesk.zendesk.com/hc/en-us/categories/4412619927695-Yoroi"
80+
target="_blank"
7381
rel="noreferrer"
7482
>
7583
{intl.formatMessage(globalMessages.sidebarFaq)}

packages/yoroi-extension/app/components/topbar/banners/TestnetWarningBanner.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export default class TestnetWarningBanner extends Component<Props> {
6363
<div className={styles.ergoWarning}>
6464
<span key="0" className={styles.shelleyTestnetWarningIcon}><ShelleyTestnetWarningSvg /></span>
6565
<div className={styles.text}>
66-
NOTE: Unfortunately the Ergo network support will be dropped from Yoroi in the near future.
66+
NOTE: Due to the planned gradual termination of the Ergo wallets support in Yoroi extension,
67+
<br />
68+
Starting with the next version any Ergo wallets in the list will be visible, but not operational!
6769
<br />
6870
Please make sure to migrate your Ergo funds and wallets to another application.
6971
</div>

packages/yoroi-extension/app/components/topbar/banners/TestnetWarningBanner.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
}
4747

4848
.ergoWarning {
49-
height: 60px;
49+
height: 90px;
5050
display: flex;
5151
justify-content: center;
5252
align-items: center;

packages/yoroi-extension/app/components/transfer/SuccessPage.js

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @flow
2-
import type { Node } from 'react';
2+
import type { ComponentType, Node } from 'react';
33
import { Component } from 'react';
44
import { observer } from 'mobx-react';
55
import { intlShape } from 'react-intl';
@@ -8,6 +8,9 @@ import Dialog from '../widgets/Dialog';
88
import DialogCloseButton from '../widgets/DialogCloseButton';
99
import LoadingSpinner from '../widgets/LoadingSpinner';
1010
import type { $npm$ReactIntl$IntlFormat } from 'react-intl';
11+
import { Typography } from '@mui/material';
12+
import { withLayout } from '../../styles/context/layout';
13+
import type { InjectedLayoutProps } from '../../styles/context/layout';
1114

1215
type Props = {|
1316
+title: string,
@@ -20,8 +23,7 @@ type Props = {|
2023
|};
2124

2225
@observer
23-
export default class SuccessPage extends Component<Props> {
24-
26+
class SuccessPage extends Component<Props & InjectedLayoutProps> {
2527
static contextTypes: {|intl: $npm$ReactIntl$IntlFormat|} = {
2628
intl: intlShape.isRequired
2729
};
@@ -31,7 +33,7 @@ export default class SuccessPage extends Component<Props> {
3133
};
3234

3335
render(): Node {
34-
const { title, text } = this.props;
36+
const { title, text, isRevampLayout } = this.props;
3537

3638
const actions = this.props.closeInfo == null
3739
? undefined
@@ -48,17 +50,28 @@ export default class SuccessPage extends Component<Props> {
4850
closeOnOverlayClick={false}
4951
onClose={this.props.closeInfo ? this.props.closeInfo.onClose : undefined}
5052
className={styles.dialog}
51-
closeButton={this.props.closeInfo ? (<DialogCloseButton />) : undefined}
53+
closeButton={this.props.closeInfo ? <DialogCloseButton /> : undefined}
5254
>
5355
<div className={styles.component}>
5456
<div>
5557
<div className={styles.successImg} />
56-
<div className={styles.title}>
58+
<Typography
59+
variant="body1"
60+
color={isRevampLayout ? 'primary' : 'secondary.300'}
61+
textAlign="center"
62+
mt="16px"
63+
fontWeight={500}
64+
>
5765
{title}
58-
</div>
59-
<div className={styles.text}>
66+
</Typography>
67+
<Typography
68+
variant="body2"
69+
color="gray.900"
70+
textAlign="center"
71+
mt="4px"
72+
>
6073
{text}
61-
</div>
74+
</Typography>
6275
{this.props.closeInfo == null && (
6376
<div className={styles.spinnerSection}>
6477
<LoadingSpinner />
@@ -70,3 +83,5 @@ export default class SuccessPage extends Component<Props> {
7083
);
7184
}
7285
}
86+
87+
export default (withLayout(SuccessPage): ComponentType<Props>);

packages/yoroi-extension/app/components/transfer/SuccessPage.scss

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,6 @@
44
align-items: center;
55
justify-content: center;
66

7-
.title {
8-
color: var(--yoroi-palette-secondary-300);
9-
text-transform: uppercase;
10-
height: 19px;
11-
font-weight: 500;
12-
font-size: 16px;
13-
font-weight: 500;
14-
line-height: 19px;
15-
text-align: center;
16-
}
17-
18-
.text {
19-
color: var(--yoroi-palette-gray-800);
20-
font-weight: 400;
21-
font-size: 14px;
22-
line-height: 22px;
23-
text-align: center;
24-
}
25-
267
.spinnerSection {
278
margin-top: 12px;
289
margin-bottom: 5px;
@@ -37,6 +18,7 @@
3718
width: 252px;
3819
height: 194px;
3920
margin: auto;
21+
margin-top: 30px;
4022
}
4123
}
4224
:global(.YoroiModern):global(.YoroiShelley) .component, :global(.YoroiRevamp):global(.YoroiShelley) .component {

0 commit comments

Comments
 (0)