Skip to content

Commit d033f23

Browse files
Ikko Eltociear Ashimineyihuiliao
andauthored
Update GalleryLayout.tsx (#6328)
avaliable -> available Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
1 parent bf8acd2 commit d033f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-spectrum/card/src/GalleryLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class GalleryLayout<T> extends BaseLayout<T> {
139139
let y = this.margin;
140140
let availableWidth = visibleWidth - this.margin * 2;
141141

142-
// If avaliable width is not greater than 0, skip node layout calculations
142+
// If available width is not greater than 0, skip node layout calculations
143143
if (availableWidth > 0) {
144144
// Compute aspect ratios for all of the items, and the total width if all items were on in a single row.
145145
let ratios = [];
@@ -220,7 +220,7 @@ export class GalleryLayout<T> extends BaseLayout<T> {
220220
if (this.isLoading) {
221221
let loaderY = y;
222222
let loaderHeight = 60;
223-
// If there aren't any items, make loader take all avaliable room and remove margin from y calculation
223+
// If there aren't any items, make loader take all available room and remove margin from y calculation
224224
// so it doesn't scroll
225225
if (this.collection.size === 0) {
226226
loaderY = 0;

0 commit comments

Comments
 (0)