Skip to content
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

fix: The sol icon is replaced with base64 #3106

Closed
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
116 changes: 62 additions & 54 deletions wormhole-connect/src/icons/Chains/SOL.tsx
Original file line number Diff line number Diff line change
@@ -1,63 +1,71 @@
import React from 'react';

function SOL() {
// return (
// <svg
// width="36"
// height="36"
// viewBox="0 0 36 36"
// fill="none"
// xmlns="http://www.w3.org/2000/svg"
// >
// <rect width="36" height="36" rx="6" fill="black" />
// <path
// d="M10.4854 22.4808C10.6216 22.3449 10.8064 22.2687 10.999 22.2687H28.7693C29.093 22.2687 29.255 22.6593 29.026 22.8877L25.5147 26.3893C25.3784 26.5252 25.1937 26.6015 25.0011 26.6015H7.23081C6.9071 26.6015 6.74507 26.2108 6.97406 25.9825L10.4854 22.4808Z"
// fill="url(#paint0_linear_85_9551)"
// />
// <path
// d="M10.4854 9.39895C10.6216 9.26308 10.8064 9.18677 10.999 9.18677H28.7693C29.093 9.18677 29.255 9.57744 29.026 9.80581L25.5147 13.3074C25.3784 13.4433 25.1937 13.5196 25.0011 13.5196H7.23081C6.9071 13.5196 6.74507 13.129 6.97406 12.9006L10.4854 9.39895Z"
// fill="url(#paint1_linear_85_9551)"
// />
// <path
// d="M25.5147 15.8982C25.3784 15.7624 25.1937 15.686 25.0011 15.686H7.23081C6.9071 15.686 6.74507 16.0767 6.97406 16.305L10.4854 19.8067C10.6216 19.9425 10.8064 20.0189 10.999 20.0189H28.7693C29.093 20.0189 29.255 19.6282 29.026 19.3998L25.5147 15.8982Z"
// fill="url(#paint2_linear_85_9551)"
// />
// <defs>
// <linearGradient
// id="paint0_linear_85_9551"
// x1="21.9203"
// y1="4.40983"
// x2="9.65997"
// y2="27.9398"
// gradientUnits="userSpaceOnUse"
// >
// <stop stopColor="#00FFA3" />
// <stop offset="1" stopColor="#DC1FFF" />
// </linearGradient>
// <linearGradient
// id="paint1_linear_85_9551"
// x1="21.9203"
// y1="4.40982"
// x2="9.65999"
// y2="27.9398"
// gradientUnits="userSpaceOnUse"
// >
// <stop stopColor="#00FFA3" />
// <stop offset="1" stopColor="#DC1FFF" />
// </linearGradient>
// <linearGradient
// id="paint2_linear_85_9551"
// x1="21.9203"
// y1="4.40983"
// x2="9.66001"
// y2="27.9398"
// gradientUnits="userSpaceOnUse"
// >
// <stop stopColor="#00FFA3" />
// <stop offset="1" stopColor="#DC1FFF" />
// </linearGradient>
// </defs>
// </svg>
// );
return (
<svg
<img
width="36"
height="36"
viewBox="0 0 36 36"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect width="36" height="36" rx="6" fill="black" />
<path
d="M10.4854 22.4808C10.6216 22.3449 10.8064 22.2687 10.999 22.2687H28.7693C29.093 22.2687 29.255 22.6593 29.026 22.8877L25.5147 26.3893C25.3784 26.5252 25.1937 26.6015 25.0011 26.6015H7.23081C6.9071 26.6015 6.74507 26.2108 6.97406 25.9825L10.4854 22.4808Z"
fill="url(#paint0_linear_85_9551)"
/>
<path
d="M10.4854 9.39895C10.6216 9.26308 10.8064 9.18677 10.999 9.18677H28.7693C29.093 9.18677 29.255 9.57744 29.026 9.80581L25.5147 13.3074C25.3784 13.4433 25.1937 13.5196 25.0011 13.5196H7.23081C6.9071 13.5196 6.74507 13.129 6.97406 12.9006L10.4854 9.39895Z"
fill="url(#paint1_linear_85_9551)"
/>
<path
d="M25.5147 15.8982C25.3784 15.7624 25.1937 15.686 25.0011 15.686H7.23081C6.9071 15.686 6.74507 16.0767 6.97406 16.305L10.4854 19.8067C10.6216 19.9425 10.8064 20.0189 10.999 20.0189H28.7693C29.093 20.0189 29.255 19.6282 29.026 19.3998L25.5147 15.8982Z"
fill="url(#paint2_linear_85_9551)"
/>
<defs>
<linearGradient
id="paint0_linear_85_9551"
x1="21.9203"
y1="4.40983"
x2="9.65997"
y2="27.9398"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#00FFA3" />
<stop offset="1" stopColor="#DC1FFF" />
</linearGradient>
<linearGradient
id="paint1_linear_85_9551"
x1="21.9203"
y1="4.40982"
x2="9.65999"
y2="27.9398"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#00FFA3" />
<stop offset="1" stopColor="#DC1FFF" />
</linearGradient>
<linearGradient
id="paint2_linear_85_9551"
x1="21.9203"
y1="4.40983"
x2="9.66001"
y2="27.9398"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#00FFA3" />
<stop offset="1" stopColor="#DC1FFF" />
</linearGradient>
</defs>
</svg>
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHJ4PSI2IiBmaWxsPSJibGFjayI+PC9yZWN0PjxwYXRoIGQ9Ik0xMC40ODU0IDIyLjQ4MDhDMTAuNjIxNiAyMi4zNDQ5IDEwLjgwNjQgMjIuMjY4NyAxMC45OTkgMjIuMjY4N0gyOC43NjkzQzI5LjA5MyAyMi4yNjg3IDI5LjI1NSAyMi42NTkzIDI5LjAyNiAyMi44ODc3TDI1LjUxNDcgMjYuMzg5M0MyNS4zNzg0IDI2LjUyNTIgMjUuMTkzNyAyNi42MDE1IDI1LjAwMTEgMjYuNjAxNUg3LjIzMDgxQzYuOTA3MSAyNi42MDE1IDYuNzQ1MDcgMjYuMjEwOCA2Ljk3NDA2IDI1Ljk4MjVMMTAuNDg1NCAyMi40ODA4WiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzg1Xzk1NTEpIj48L3BhdGg+PHBhdGggZD0iTTEwLjQ4NT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