fix: camelCase the type, not the name
This commit is contained in:
parent
61b7f4c376
commit
461147b7ac
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue