Skip to content

Commit 7872701

Browse files
committed
fix: Make the whole resources block clickable
https://harperdb.atlassian.net/browse/STUDIO-461
1 parent c5252f3 commit 7872701

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/features/clusters/upsert/components/ResourcesPerInstance.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function ResourcesPerInstance({ planLimits, resourcesPerInstance, selecte
107107
}
108108

109109
return <FormItem className="basis-full">
110-
<FormLabel>
110+
<FormLabel onClick={onUsageLimitsClick}>
111111
Purchasing usage block for {isPositive(planLimits.readsPerMinuteCount) ? `${humanNumber(planLimits.readsPerMinuteCount * multiplier)} reads/min & ` : ''}
112112
{humanNumber(planLimits.totalReadCount * multiplier)} total reads {isPositive(planLimits.readsPerMinuteCount) ? 'in ' + (selectedRegion?.region ?? '') + ' region' : 'per server'},<br className="hidden sm:block" />
113113
{isPositive(planLimits.writesPerMinuteCount) ? ` ${humanNumber(planLimits.writesPerMinuteCount)} writes/min & ` : ' '}
@@ -117,7 +117,6 @@ export function ResourcesPerInstance({ planLimits, resourcesPerInstance, selecte
117117
type="button"
118118
variant="link"
119119
className="text-white"
120-
onClick={onUsageLimitsClick}
121120
>
122121
Learn More {toggled ? <ArrowDownIcon /> : <ArrowRightIcon />}
123122
</Button>

0 commit comments

Comments
 (0)