fix: camelCase the type, not the name

This commit is contained in:
Derrick Hammer 2023-10-12 15:08:30 -04:00
parent 61b7f4c376
commit 461147b7ac
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ const LumeDashboard = (props: any) => {
</div> </div>
{uniqueNetworkTypes.map((type, index) => ( {uniqueNetworkTypes.map((type, index) => (
<div className="mt-4 mb-8" key={`NetworkTypeSection_${index}`}> <div className="mt-4 mb-8" key={`NetworkTypeSection_${index}`}>
<h2 className="text-xl mb-4">{type}</h2> <h2 className="text-xl mb-4">{camelCase(type)}</h2>
<div className="grid grid-cols-2"> <div className="grid grid-cols-2">
{networks {networks
.filter((network) => network.type === type) .filter((network) => network.type === type)
@ -103,7 +103,7 @@ const NetworkIndicator = ({ network }: { network: Network }) => {
<div key={network.id} className="flex flex-row gap-x-2 items-center "> <div key={network.id} className="flex flex-row gap-x-2 items-center ">
<CircularProgress chain={network} /> <CircularProgress chain={network} />
<div className="flex flex-col"> <div className="flex flex-col">
<span>{camelCase(network.name)}</span> <span>{network.name}</span>
<span <span
className={cn([ className={cn([
"text-[12px] -mt-1", "text-[12px] -mt-1",