Skip to content

Commit

Permalink
Merge branch 'add-memeContract' into add-memeContract-btcWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
lq0-github committed Jan 15, 2025
2 parents cc069d5 + c63e2b6 commit 4db29de
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
56 changes: 56 additions & 0 deletions components/Assets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,34 @@ const assets = {
</defs>
</svg>
),
borrowMemeBg: (
<svg
xmlns="http://www.w3.org/2000/svg"
width="235"
height="94"
viewBox="0 0 235 94"
fill="none"
>
<path
opacity="0.2"
d="M0 12C0 5.37257 5.37258 0 12 0H235V93.4125H0V12Z"
fill="url(#paint0_radial_406_11791_1)"
/>
<defs>
<radialGradient
id="paint0_radial_406_11791_1"
cx="0"
cy="0"
r="1"
gradientUnits="userSpaceOnUse"
gradientTransform="rotate(90) scale(93 229.5)"
>
<stop stopColor="#FF6BA9" />
<stop offset="1" stopColor="#FF6BA9" stopOpacity="0" />
</radialGradient>
</defs>
</svg>
),
suppliedBg: (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -56,6 +84,34 @@ const assets = {
</defs>
</svg>
),
suppliedMemeBg: (
<svg
xmlns="http://www.w3.org/2000/svg"
width="235"
height="94"
viewBox="0 0 235 94"
fill="none"
>
<path
opacity="0.2"
d="M0 12C0 5.37257 5.37258 0 12 0H235V93.4125H0V12Z"
fill="url(#paint0_radial_406_11793_1)"
/>
<defs>
<radialGradient
id="paint0_radial_406_11793_1"
cx="0"
cy="0"
r="1"
gradientUnits="userSpaceOnUse"
gradientTransform="rotate(90) scale(93 229.5)"
>
<stop stopColor="#D2FF3A" />
<stop offset="1" stopColor="#D2FF3A" stopOpacity="0" />
</radialGradient>
</defs>
</svg>
),
},
};
export const nearMetadata = {
Expand Down
4 changes: 2 additions & 2 deletions screens/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ const YourSupplied = ({
<div className="flex items-center justify-between mb-4">
<div className="flex items-center">
<div className="absolute" style={{ left: 0, top: 0 }}>
{assets.svg.suppliedBg}
{memeCategory ? assets.svg.suppliedMemeBg : assets.svg.suppliedBg}
</div>
<SupplyTokenSvg className="mr-10" />
<div className="h3">You Supplied</div>
Expand Down Expand Up @@ -487,7 +487,7 @@ const YourBorrowed = ({
<div className="flex items-center justify-between mb-4">
<div className="flex items-center">
<div className="absolute" style={{ left: 0, top: 0 }}>
{assets.svg.borrowBg}
{memeCategory ? assets.svg.borrowMemeBg : assets.svg.borrowBg}
</div>
<BorrowTokenSvg className="mr-10" />
<div className="h3">You Borrowed</div>
Expand Down

0 comments on commit 4db29de

Please sign in to comment.