feat: add two and three column grid variants
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { _ } from "@/lib/translation"
|
||||
import { trpc } from "@/lib/trpc/client"
|
||||
|
||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
||||
|
||||
import Container from "../Container"
|
||||
@@ -40,8 +41,9 @@ export default function PreviousStays({
|
||||
return (
|
||||
<Container>
|
||||
<Header title={title} subtitle={subtitle} link={link} />
|
||||
{isLoading ? <p>{_("Loading")}</p> : null}
|
||||
{stays.length && !isLoading ? (
|
||||
{isLoading ? (
|
||||
<LoadingSpinner />
|
||||
) : stays.length ? (
|
||||
<ListContainer>
|
||||
<CardGrid>
|
||||
{stays.map((stay) => (
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import { _ } from "@/lib/translation"
|
||||
import { trpc } from "@/lib/trpc/client"
|
||||
|
||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||
import CardGrid from "@/components/TempDesignSystem/CardGrid"
|
||||
|
||||
import Container from "../Container"
|
||||
@@ -40,9 +41,9 @@ export default function UpcomingStays({
|
||||
return (
|
||||
<Container>
|
||||
<Header title={title} subtitle={subtitle} link={link} />
|
||||
|
||||
{isLoading ? <p>{_("Loading")}</p> : null}
|
||||
{stays.length && !isLoading ? (
|
||||
{isLoading ? (
|
||||
<LoadingSpinner />
|
||||
) : stays.length ? (
|
||||
<ListContainer>
|
||||
<CardGrid>
|
||||
{stays.map((stay) => (
|
||||
|
||||
Reference in New Issue
Block a user