Skip to content

8.5.1 Updated wallet icon #984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/bundle.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/components/Changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ class Changelog extends React.Component {
<h1>Change Log</h1>

<h2>MX React Components V 8.0.0</h2>
<h3>8.5.1</h3>
<ul>
<li>Replaced wallet icon</li>
</ul>

<h3>8.5.0</h3>
<ul>
<li>Changing Font to Inter</li>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mx-react-components",
"version": "8.5.0",
"version": "8.5.1",
"description": "A collection of generic React UI components",
"main": "dist/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Icon extends React.Component {
className='mx-icon'
preserveAspectRatio='xMidYMid meet'
style={styles.component}
viewBox='0 0 512 512'
viewBox={this.props.type === 'wallet' ? '0 0 38 38' : '0 0 512 512'}
>
{getIconPath(this.props.type, this.props.backgroundFillColor)}
</svg>
Expand Down
10 changes: 2 additions & 8 deletions src/constants/IconPaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -1692,14 +1692,8 @@ const getIconPath = (type, backgroundFillColor = 'transparent') => {
),
'wallet':
(
<g>
<path d="M359.52,208.84H328.39V104.42H297.26V0h-235V34.81H39.69C17.81,34.81,0,54.26,0,78.18V339.23C0,372.74,24.78,400,55.25,
400H328.39V295.58h31.13ZM79.37,17.12H280.14v87.3H79.37V17.12ZM39.69,51.93H62.25v52.49H39.69c-12.44,0-22.57-11.77-22.57-26.24S27.25,
51.93,39.69,51.93Zm271.58,331h-256c-21,0-38.13-19.58-38.13-43.65V113.83l.21.15.79.55c.71.51,1.43,1,2.17,1.44.35.22.71.43,
1.07.64.72.41,1.46.79,2.21,1.16.32.16.64.33,1,.48,1.05.48,2.13.92,3.23,1.3l.66.19c.92.3,1.85.56,2.79.79l1.15.25c.84.17,
1.68.31,2.54.42l1.1.14c1.21.12,2.43.2,3.67.2H311.27v87.3H280.92c-21.88,0-39.68,19.45-39.68,43.37s17.8,43.37,39.68,43.37h30.35ZM342.4,
278.46H280.92c-12.44,0-22.56-11.77-22.56-26.25S268.48,226,280.92,226H342.4Z"
/>
<g transform="translate(4 2)">
<path d="M3.005 1.386 C 1.857 1.687,0.868 2.615,0.436 3.795 L 0.293 4.187 0.293 15.547 L 0.293 26.907 0.466 27.413 C 0.916 28.738,1.783 29.723,3.001 30.293 C 3.249 30.410,3.653 30.559,3.899 30.624 L 4.347 30.744 16.547 30.760 L 28.747 30.776 28.747 26.774 L 28.747 22.773 30.240 22.773 L 31.733 22.773 31.733 19.013 L 31.733 15.253 30.240 15.253 L 28.747 15.253 28.747 11.253 L 28.747 7.253 16.360 7.253 C 8.664 7.253,3.854 7.233,3.659 7.201 C 2.495 7.011,1.690 5.989,1.777 4.811 C 1.842 3.923,2.493 3.110,3.348 2.851 C 3.563 2.786,4.910 2.774,12.413 2.774 L 21.227 2.773 21.227 3.760 L 21.227 4.747 22.000 4.747 L 22.773 4.747 22.773 3.013 L 22.773 1.280 13.080 1.283 C 3.778 1.286,3.371 1.290,3.005 1.386 M1.913 8.125 C 2.018 8.252,2.799 8.586,3.178 8.667 C 3.495 8.734,5.192 8.745,15.400 8.746 L 27.253 8.747 27.253 11.996 L 27.253 15.245 25.267 15.267 C 23.660 15.285,23.226 15.305,22.999 15.373 C 21.982 15.678,21.116 16.402,20.642 17.345 C 20.344 17.937,20.247 18.432,20.279 19.194 C 20.323 20.220,20.610 20.867,21.360 21.630 C 21.848 22.126,22.310 22.409,22.959 22.607 C 23.372 22.734,23.453 22.739,25.320 22.761 L 27.253 22.783 27.253 26.033 L 27.253 29.283 15.853 29.268 L 4.453 29.253 4.022 29.107 C 3.469 28.920,3.044 28.641,2.626 28.193 C 2.238 27.776,1.943 27.229,1.837 26.726 C 1.774 26.431,1.762 24.866,1.761 17.213 C 1.760 11.994,1.780 8.053,1.807 8.053 C 1.833 8.053,1.880 8.085,1.913 8.125 M30.240 19.005 L 30.240 21.263 26.920 21.254 C 23.308 21.245,23.392 21.252,22.856 20.938 C 22.532 20.748,22.148 20.310,21.969 19.927 C 21.691 19.333,21.706 18.554,22.006 17.962 C 22.280 17.420,22.975 16.900,23.555 16.803 C 23.697 16.779,25.259 16.756,27.027 16.753 L 30.240 16.747 30.240 19.005 " />
</g>
),
'windows':
Expand Down