Skip to content

Commit

Permalink
fix: add missing icons and remove erroring RPC (#1222)
Browse files Browse the repository at this point in the history
* fix: add missing icons and remove erroring RPC

* Update src/pages/Transfer/CrossChainTransferForm/components/ChainIcon/icons/Acala.tsx

Co-authored-by: Peter Slaný <[email protected]>

* Update src/pages/Transfer/CrossChainTransferForm/components/ChainIcon/icons/Astar.tsx

Co-authored-by: Peter Slaný <[email protected]>

* Update src/pages/Transfer/CrossChainTransferForm/components/ChainIcon/icons/Parallel.tsx

Co-authored-by: Peter Slaný <[email protected]>

---------

Co-authored-by: Peter Slaný <[email protected]>
  • Loading branch information
tomjeatt and peterslany authored May 24, 2023
1 parent 63b059a commit 65d0a00
Show file tree
Hide file tree
Showing 6 changed files with 274 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,35 @@ import { forwardRef, ForwardRefExoticComponent, RefAttributes } from 'react';
import { IconProps } from '@/component-library/Icon';

import { StyledFallbackIcon } from './ChainIcon.style';
import { BIFROST, HEIKO, HYDRA, INTERLAY, KARURA, KINTSUGI, KUSAMA, POLKADOT, STATEMINE, STATEMINT } from './icons';
import {
ACALA,
ASTAR,
BIFROST,
HEIKO,
HYDRA,
INTERLAY,
KARURA,
KINTSUGI,
KUSAMA,
PARALLEL,
POLKADOT,
STATEMINE,
STATEMINT
} from './icons';

type ChainComponent = ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>;

const chainsIcon: Record<string, ChainComponent> = {
ACALA,
ASTAR,
BIFROST,
HEIKO,
HYDRA,
INTERLAY,
KARURA,
KINTSUGI,
KUSAMA,
PARALLEL,
POLKADOT,
STATEMINE,
STATEMINT
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
import { forwardRef } from 'react';

import { Icon, IconProps } from '@/component-library/Icon';

const ACALA = forwardRef<SVGSVGElement, IconProps>((props, ref) => (
<Icon {...props} ref={ref} viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>
<g clipPath='url(#clip0_301_1271)'>
<path
d='M23.6427 8.97164C24.5248 12.4891 23.9726 15.7097 22.0246 18.6414C20.0807 21.5669 17.3484 23.2867 13.8295 23.8359C9.68676 24.4825 6.19829 23.1994 3.32725 20.3195C1.5891 18.576 0.53707 16.3968 0.157783 13.8728C-0.463441 9.73879 0.760804 6.23459 3.63498 3.3503C5.39717 1.58191 7.59257 0.494332 10.1569 0.137654C13.8622 -0.377737 17.0588 0.55138 19.8961 2.97131C21.7717 4.57101 22.9431 6.56852 23.6427 8.97164Z'
fill='white'
/>
<path
d='M9.08234 1.41341C2.28857 3.35742 -1.006 11.072 2.28857 17.2928C3.16848 18.9299 4.98971 20.8739 5.62407 20.8739C6.54491 20.8739 6.40167 20.3419 5.13295 19.0731C-1.10832 12.8319 3.29126 2.2524 12.1314 2.2524C16.4696 2.2524 20.0915 4.87169 21.483 8.98479C21.9128 10.233 22.2197 10.4786 22.6699 9.94656C22.8541 9.72147 22.8336 9.39406 22.5267 8.5346C20.685 3.05047 14.5869 -0.182714 9.08234 1.41341Z'
fill='#E6295D'
/>
<path
d='M9.28699 3.21417C2.43182 5.66976 0.590137 13.896 5.76732 18.8685C6.85187 19.8917 7.50669 20.0963 7.97735 19.5233C8.2229 19.2164 8.18198 19.1345 7.75225 18.848C3.43452 16.0037 2.80016 10.0489 6.46307 6.38597C10.8627 1.98638 18.9047 4.40104 19.9278 10.4377C20.0711 11.3176 20.5622 11.5427 21.0329 10.9697C21.6058 10.2944 20.1529 7.10218 18.5568 5.50605C16.2649 3.21417 12.1314 2.21148 9.28699 3.21417Z'
fill='#E6295D'
/>
<path
d='M11.6403 6.42692C11.6403 6.81572 15.9785 13.8346 16.2445 13.8755C17.1449 14.0597 16.9402 13.4663 14.9144 9.94659C12.9704 6.59063 12.7862 6.34507 12.2337 6.34507C11.9063 6.34507 11.6403 6.386 11.6403 6.42692Z'
fill='#E6295D'
/>
<path
d='M8.89818 10.54C6.97464 13.8959 6.74954 14.3666 6.97464 14.7349C7.3839 15.3693 7.40437 15.3488 9.34837 11.9519C11.1901 8.78014 11.1901 8.78014 12.2337 10.5809C13.2773 12.3817 13.2773 12.3817 12.336 12.484C10.4329 12.6886 10.4738 13.4253 12.3974 13.5481C13.6047 13.6299 14.0344 13.7322 14.1981 14.0187C14.6893 14.8372 14.8325 14.96 15.1804 14.8168C15.3645 14.7554 15.5282 14.5508 15.5282 14.4075C15.5282 14.0596 11.3947 6.77475 11.2105 6.75429C11.1491 6.75429 10.1055 8.45273 8.89818 10.54Z'
fill='#E6295D'
/>
<path
d='M9.4302 12.7296C7.32249 16.4129 7.34295 16.4743 9.79854 15.533C10.7194 15.1851 11.2105 15.1238 12.6225 15.2056C13.5433 15.267 14.3004 15.267 14.3004 15.2261C14.3004 14.2438 13.1954 13.8755 10.9854 14.1211C9.83946 14.2438 9.819 14.2438 10.0646 13.8346C11.497 11.6245 11.8653 10.7037 11.497 10.2535C11.1286 9.80333 11.1082 9.82379 9.4302 12.7296Z'
fill='#E6295D'
/>
<path
d='M11.3946 2.19098C11.7425 2.23191 12.3564 2.23191 12.7248 2.19098C13.0726 2.15006 12.7861 2.10913 12.0495 2.10913C11.3128 2.10913 11.0263 2.15006 11.3946 2.19098Z'
fill='#E7CAD8'
/>
<path
d='M11.5993 4.03269C11.9677 4.07362 12.5202 4.07362 12.8271 4.03269C13.1341 3.99176 12.8271 3.95084 12.1518 3.95084C11.4765 3.95084 11.231 3.99176 11.5993 4.03269Z'
fill='#E7CAD8'
/>
<path
d='M20.0302 11.911C20.0302 12.7091 20.112 13.3025 20.2348 13.3025C20.5008 13.3025 20.5008 11.2562 20.2348 10.8469C20.0915 10.6218 20.0302 10.9492 20.0302 11.911Z'
fill='#E7CAD8'
/>
<path
d='M16.4491 12.8933C16.5105 12.9956 16.6128 13.2616 16.6537 13.4458C16.6947 13.6504 16.7765 13.9983 16.8584 14.2234C16.9811 14.5508 16.8993 14.5099 16.4696 14.0597C15.7124 13.3025 15.6306 13.3639 16.1626 14.3257C16.6947 15.2465 16.8584 15.3284 17.1653 14.7349C17.3699 14.3666 16.7765 12.6886 16.4286 12.6886C16.3672 12.6886 16.3877 12.7705 16.4491 12.8933Z'
fill='#E7CAD8'
/>
<path
d='M22.0151 12.8318C21.79 13.0365 21.8514 13.9164 22.0765 13.9164C22.1992 13.9164 22.2811 13.6299 22.2811 13.3025C22.2811 12.6681 22.2402 12.5863 22.0151 12.8318Z'
fill='#E7CAD8'
/>
<path
d='M20.7668 13.9164C20.6236 14.8577 19.6413 17.0063 19.273 17.2519C19.1298 17.3337 19.007 17.5793 19.007 17.7635C19.0275 18.05 19.1093 18.009 19.4572 17.5998C20.3985 16.4743 21.6263 13.0979 21.0942 13.0979C20.9919 13.0979 20.8487 13.4662 20.7668 13.9164Z'
fill='#E7CAD8'
/>
<path
d='M15.1804 13.9369C15.3032 14.3257 15.4873 14.6735 15.5487 14.7349C15.7534 14.9191 15.9375 15.5535 15.7738 15.5535C15.7124 15.5535 15.3236 15.2056 14.9348 14.7759C14.2391 14.0187 14.2391 14.0187 14.7711 14.9396C15.2009 15.6762 15.4464 15.8809 15.958 15.9218C16.5923 15.9832 16.5923 15.9832 15.9375 14.7963C15.0985 13.3025 14.853 13.0365 15.1804 13.9369Z'
fill='#E7CAD8'
/>
<path
d='M19.9892 13.6299C19.8869 13.7118 19.8255 13.9369 19.8255 14.121C19.8255 15.6149 17.4927 18.3569 15.3645 19.3596C14.7302 19.6666 14.3004 19.9531 14.4437 19.994C14.7711 20.1168 16.9606 19.0527 17.1039 18.7048C17.1653 18.5411 17.329 18.4183 17.4518 18.4183C17.7792 18.4183 18.5977 17.5589 18.5977 17.2314C18.5977 17.0882 18.7 16.9859 18.8023 16.9859C18.9251 16.9859 19.007 16.8426 19.007 16.6789C19.007 16.5152 19.0888 16.372 19.1911 16.372C19.4367 16.372 20.2757 14.162 20.1938 13.7732C20.1529 13.6095 20.071 13.5481 19.9892 13.6299Z'
fill='#E7CAD8'
/>
<path
d='M13.7275 14.5712C14.1572 15.0009 14.1572 15.0214 13.7684 15.1646C13.4205 15.3079 13.4205 15.3283 13.8503 15.3283C14.3823 15.3488 14.3823 15.3283 14.0549 14.6326C13.9321 14.3461 13.707 14.121 13.5433 14.121C13.3796 14.121 13.441 14.2847 13.7275 14.5712Z'
fill='#E7CAD8'
/>
<path
d='M22.3834 14.8782C22.1992 15.6763 21.1965 17.8863 21.0124 17.9681C20.9305 18.0091 20.8487 18.1932 20.8487 18.3774C20.8691 18.9094 21.4012 18.1728 22.0765 16.679C22.7313 15.2465 22.9768 14.3257 22.7108 14.3257C22.6085 14.3257 22.4653 14.5712 22.3834 14.8782Z'
fill='#E7CAD8'
/>
<path
d='M21.0738 16.2083C20.3166 17.8249 18.8024 19.5438 17.329 20.4851C16.756 20.8534 16.4082 21.2013 16.5514 21.2422C16.6947 21.3036 16.8584 21.2422 16.9402 21.1604C17.0016 21.058 17.3085 20.8534 17.636 20.7306C17.9429 20.5874 18.1885 20.3828 18.1885 20.26C18.1885 20.1577 18.3112 20.0553 18.4545 20.0553C18.7819 20.0553 20.0301 18.8071 20.0301 18.4797C20.0301 18.3569 20.1529 18.2137 20.3166 18.1523C20.6645 18.009 21.9332 15.4307 21.8104 15.0828C21.7695 14.96 21.4421 15.4511 21.0738 16.2083Z'
fill='#E7CAD8'
/>
<path
d='M7.71134 19.0117C8.3457 19.6052 9.83952 20.26 10.5557 20.26C11.1082 20.26 10.5967 19.9326 9.59396 19.6665C9.08238 19.5233 8.30478 19.1754 7.85459 18.8889C7.03606 18.3774 7.03606 18.3774 7.71134 19.0117Z'
fill='#E7CAD8'
/>
<path
d='M18.0656 18.7252C17.9838 18.8889 17.7996 19.0322 17.6564 19.0322C17.4927 19.0322 17.3085 19.155 17.2471 19.3187C17.1857 19.4824 16.9197 19.6665 16.6332 19.7279C16.183 19.8507 15.917 20.26 16.2853 20.26C16.5514 20.26 18.5977 18.7866 18.5977 18.6025C18.5977 18.2955 18.1884 18.3978 18.0656 18.7252Z'
fill='#E7CAD8'
/>
<path
d='M4.49859 20.0963C5.97194 21.5287 9.79855 23.4522 9.79855 22.736C9.79855 22.6337 9.55299 22.4905 9.24605 22.4086C8.44798 22.2244 6.23796 21.2218 6.15611 21.0376C6.11518 20.9557 5.95147 20.8739 5.78777 20.8739C5.6036 20.8739 4.9897 20.4442 4.39627 19.8916C3.37311 18.9708 3.37311 18.9913 4.49859 20.0963Z'
fill='#E7CAD8'
/>
<path
d='M19.539 19.6461C19.0889 20.0963 18.8024 20.526 18.8638 20.6079C19.0275 20.7511 20.6441 19.2778 20.6441 18.9913C20.6441 18.6639 20.3166 18.848 19.539 19.6461Z'
fill='#E7CAD8'
/>
<path
d='M6.09472 20.2395C6.54491 20.8739 8.40706 21.7947 9.69624 21.9994C10.8422 22.204 10.392 21.8561 8.9391 21.4059C8.30474 21.2218 7.30205 20.7511 6.72908 20.3623C5.68546 19.6666 5.68546 19.6666 6.09472 20.2395Z'
fill='#E7CAD8'
/>
<path
d='M8.05917 20.3828C8.46843 20.6897 10.2487 21.2831 10.7603 21.2831C11.3947 21.2831 10.9649 20.9148 10.1873 20.792C9.71669 20.7102 9.08233 20.526 8.75492 20.3623C7.99778 19.953 7.52713 19.9735 8.05917 20.3828Z'
fill='#E7CAD8'
/>
<path
d='M11.0264 20.26C11.0264 20.3623 11.497 20.4646 12.0495 20.4646C12.6225 20.4646 13.0727 20.3623 13.0727 20.26C13.0727 20.1372 12.6225 20.0553 12.0495 20.0553C11.497 20.0553 11.0264 20.1372 11.0264 20.26Z'
fill='#E7CAD8'
/>
<path
d='M14.7097 20.5874C14.3209 20.7306 13.7888 20.8534 13.5433 20.8534C13.0522 20.8739 12.868 21.2831 13.3387 21.2831C13.8298 21.2831 15.7124 20.6692 15.8352 20.4646C15.9989 20.1986 15.6101 20.2395 14.7097 20.5874Z'
fill='#E7CAD8'
/>
<path
d='M17.9429 21.0376C17.8611 21.2627 15.5078 22.2858 14.7302 22.4291C14.3823 22.5109 14.0958 22.6542 14.0958 22.7565C14.0958 23.1862 17.2676 22.0198 18.2908 21.2013C18.6387 20.9353 18.6591 20.8943 18.3522 20.8739C18.168 20.8739 17.9838 20.9557 17.9429 21.0376Z'
fill='#E7CAD8'
/>
<path
d='M14.8734 21.5696C14.0754 21.8152 13.6456 22.1017 14.0958 22.1017C14.5869 22.1017 15.9375 21.631 15.9375 21.4468C15.9375 21.2422 15.8557 21.2627 14.8734 21.5696Z'
fill='#E7CAD8'
/>
<path
d='M10.6171 22.1016C10.6171 22.2244 11.231 22.3063 12.0495 22.3063C12.868 22.3063 13.4819 22.2244 13.4819 22.1016C13.4819 21.9789 12.868 21.897 12.0495 21.897C11.231 21.897 10.6171 21.9789 10.6171 22.1016Z'
fill='#E7CAD8'
/>
<path
d='M22.2606 9.88516C22.0151 10.0693 21.9537 10.4172 22.0355 11.5427C22.5267 19.2164 14.1572 24.5573 7.40437 20.8739C5.76732 19.994 4.6623 20.4851 6.21751 21.4059C14.1368 26.0306 23.8772 19.994 22.9973 10.9902C22.8541 9.55775 22.7927 9.4759 22.2606 9.88516Z'
fill='#9747C6'
/>
<path
d='M20.5826 10.9288C20.3575 11.1129 20.2347 11.4813 20.2347 12.0133C20.2347 17.8249 13.8912 21.938 8.73444 19.4415C8.26378 19.2164 7.91591 19.155 7.83406 19.2777C7.77267 19.3801 7.52711 19.5438 7.30201 19.6256C6.93368 19.7484 7.05645 19.8712 8.03869 20.3214C14.1981 23.2476 21.2579 18.7457 21.2579 11.8701C21.2579 10.7651 21.1147 10.5604 20.5826 10.9288Z'
fill='#9747C6'
/>
<path
d='M16.3059 13.6709C15.9784 13.7936 15.9784 13.8755 16.3877 14.4894C16.8174 15.1851 16.8174 15.1851 17.063 14.7145C17.2676 14.3666 17.2676 14.162 17.0835 13.8755C16.8379 13.4662 16.8174 13.4662 16.3059 13.6709Z'
fill='#9747C6'
/>
<path
d='M15.0781 14.5098C14.6279 14.96 15.2009 15.8399 15.8966 15.7172C16.3468 15.6558 16.3468 15.6558 15.8762 14.9191C15.4669 14.2234 15.4055 14.2029 15.0781 14.5098Z'
fill='#9747C6'
/>
</g>
<defs>
<clipPath id='clip0_301_1271'>
<rect width='24' height='24' fill='white' />
</clipPath>
</defs>
</Icon>
));

ACALA.displayName = 'ACALA';

export { ACALA };
Loading

2 comments on commit 65d0a00

@vercel
Copy link

@vercel vercel bot commented on 65d0a00 May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 65d0a00 May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.