diff --git a/merkl.config.ts b/merkl.config.ts index 6b02b7fb..41399704 100644 --- a/merkl.config.ts +++ b/merkl.config.ts @@ -48,92 +48,32 @@ export default createConfig({ deposit: false, themes: { ignite: { - base: createColoring( - ["#2A35BD", "#BFFF37", "#FFFFFF"], - ["#2A35BD", "#BFFF37", "#FFFFFF"] - ), - info: createColoring( - ["#2ABDFF", "#2ABDFF", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - good: createColoring( - ["#40B66B", "#40B66B", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - warn: createColoring( - ["#ff9600", "#ff9600", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - harm: createColoring( - ["#d22e14", "#d22e14", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), + base: createColoring(["#2A35BD", "#BFFF37", "#FFFFFF"], ["#2A35BD", "#BFFF37", "#FFFFFF"]), + info: createColoring(["#2ABDFF", "#2ABDFF", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + good: createColoring(["#40B66B", "#40B66B", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + warn: createColoring(["#ff9600", "#ff9600", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + harm: createColoring(["#d22e14", "#d22e14", "#131620"], ["#FFFFFF", "#40B66B", "white"]), }, merkl: { - base: createColoring( - ["#1755F4", "#FF7900", "#0D1530"], - ["#1755F4", "#FF7900", "#FFFFFF"] - ), - info: createColoring( - ["#2ABDFF", "#2ABDFF", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - good: createColoring( - ["#40B66B", "#40B66B", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - warn: createColoring( - ["#ff9600", "#ff9600", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - harm: createColoring( - ["#d22e14", "#d22e14", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), + base: createColoring(["#1755F4", "#FF7900", "#0D1530"], ["#1755F4", "#FF7900", "#FFFFFF"]), + info: createColoring(["#2ABDFF", "#2ABDFF", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + good: createColoring(["#40B66B", "#40B66B", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + warn: createColoring(["#ff9600", "#ff9600", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + harm: createColoring(["#d22e14", "#d22e14", "#131620"], ["#FFFFFF", "#40B66B", "white"]), }, backoffice: { - base: createColoring( - ["#8B8D98", "#9984D2", "#000000"], - ["#8B8D98", "#9984D2", "#FFFFFF"] - ), - info: createColoring( - ["#2ABDFF", "#2ABDFF", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - good: createColoring( - ["#40B66B", "#40B66B", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - warn: createColoring( - ["#ff9600", "#ff9600", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - harm: createColoring( - ["#d22e14", "#d22e14", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), + base: createColoring(["#8B8D98", "#9984D2", "#000000"], ["#8B8D98", "#9984D2", "#FFFFFF"]), + info: createColoring(["#2ABDFF", "#2ABDFF", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + good: createColoring(["#40B66B", "#40B66B", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + warn: createColoring(["#ff9600", "#ff9600", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + harm: createColoring(["#d22e14", "#d22e14", "#131620"], ["#FFFFFF", "#40B66B", "white"]), }, puffer: { - base: createColoring( - ["#2A35BD", "#BFFF37", "#FFFFFF"], - ["#2A35BD", "#BFFF37", "#FFFFFF"] - ), - info: createColoring( - ["#2ABDFF", "#2ABDFF", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - good: createColoring( - ["#40B66B", "#40B66B", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - warn: createColoring( - ["#ff9600", "#ff9600", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), - harm: createColoring( - ["#d22e14", "#d22e14", "#131620"], - ["#FFFFFF", "#40B66B", "white"] - ), + base: createColoring(["#2A35BD", "#BFFF37", "#FFFFFF"], ["#2A35BD", "#BFFF37", "#FFFFFF"]), + info: createColoring(["#2ABDFF", "#2ABDFF", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + good: createColoring(["#40B66B", "#40B66B", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + warn: createColoring(["#ff9600", "#ff9600", "#131620"], ["#FFFFFF", "#40B66B", "white"]), + harm: createColoring(["#d22e14", "#d22e14", "#131620"], ["#FFFFFF", "#40B66B", "white"]), }, }, sizing: { diff --git a/src/components/composite/Hero.tsx b/src/components/composite/Hero.tsx index c4fb99dc..c9665e3c 100644 --- a/src/components/composite/Hero.tsx +++ b/src/components/composite/Hero.tsx @@ -50,34 +50,24 @@ export default function Hero({ + }}> - {breadcrumbs?.map((breadcrumb) => { + {breadcrumbs?.map(breadcrumb => { if (breadcrumb.component) return <>{breadcrumb.component}; return ( - @@ -91,14 +81,14 @@ export default function Hero({ {!!icons && ( {icons?.length > 1 - ? icons?.map((icon) => ( + ? icons?.map(icon => ( )) - : icons?.map((icon) => ( + : icons?.map(icon => ( {tags}} {!!sideDatas && ( - - {sideDatas.map((data) => ( + + {sideDatas.map(data => ( {data.data} @@ -150,11 +137,7 @@ export default function Hero({ ); } -export function defaultHeroSideDatas( - count: number, - maxApr: number, - dailyRewards: number -) { +export function defaultHeroSideDatas(count: number, maxApr: number, dailyRewards: number) { return [ !!count && { data: ( @@ -183,5 +166,5 @@ export function defaultHeroSideDatas( label: "Max APR", key: crypto.randomUUID(), }, - ].filter((data) => !!data); + ].filter(data => !!data); }