diff --git a/app/ui/guests/affinity-groups-tree.tsx b/app/ui/guests/affinity-groups-tree.tsx
index 5476850..17e1371 100644
--- a/app/ui/guests/affinity-groups-tree.tsx
+++ b/app/ui/guests/affinity-groups-tree.tsx
@@ -1,7 +1,7 @@
'use client'
import React, { useState, useEffect, Suspense } from 'react';
-import { Tree, TreeNode } from 'primereact/tree';
+import { Tree } from 'primereact/tree';
import { PrimeIcons } from 'primereact/api';
import { debug } from 'console';
import { Group } from '@/app/lib/definitions';
@@ -9,7 +9,7 @@ import { Group } from '@/app/lib/definitions';
export default function AffinityGroupsTree() {
const [nodes, setNodes] = useState([]);
- const groupToNode = (group: Group): TreeNode => {
+ const groupToNode = (group: Group): any => {
return({
key: group.id,
label: `${group.name} (${group.guest_count})`,
@@ -56,7 +56,7 @@ export default function AffinityGroupsTree() {
return (
- setNodes(e.value)} className="w-full md:w-30rem" />
+ setNodes(e.value as any)} className="w-full md:w-30rem" />
)
diff --git a/app/ui/skeletons.tsx b/app/ui/skeletons.tsx
deleted file mode 100644
index f26dcb8..0000000
--- a/app/ui/skeletons.tsx
+++ /dev/null
@@ -1,218 +0,0 @@
-// Loading animation
-const shimmer =
- 'before:absolute before:inset-0 before:-translate-x-full before:animate-[shimmer_2s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/60 before:to-transparent';
-
-export function CardSkeleton() {
- return (
-
- );
-}
-
-export function CardsSkeleton() {
- return (
- <>
-
-
-
-
- >
- );
-}
-
-export function RevenueChartSkeleton() {
- return (
-
- );
-}
-
-export function guestskeleton() {
- return (
-
- );
-}
-
-export function LatestguestsSkeleton() {
- return (
-
- );
-}
-
-export default function DashboardSkeleton() {
- return (
- <>
-
-
-
-
-
-
-
-
-
-
-
- >
- );
-}
-
-export function TableRowSkeleton() {
- return (
-
- {/* Customer Name and Image */}
-
-
- |
- {/* Email */}
-
-
- |
- {/* Amount */}
-
-
- |
- {/* Date */}
-
-
- |
- {/* Status */}
-
-
- |
- {/* Actions */}
-
-
- |
-
- );
-}
-
-export function guestsMobileSkeleton() {
- return (
-
- );
-}
-
-export function guestsTableSkeleton() {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Customer
- |
-
- Email
- |
-
- Amount
- |
-
- Date
- |
-
- Status
- |
-
- Edit
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
diff --git a/playwright.config.ts b/playwright.config.ts
index 4a501ea..16b2700 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -25,7 +25,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
- // baseURL: 'http://127.0.0.1:3000',
+ baseURL: 'http://127.0.0.1:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
diff --git a/tests/guests.spec.ts b/tests/guests.spec.ts
new file mode 100644
index 0000000..05e7215
--- /dev/null
+++ b/tests/guests.spec.ts
@@ -0,0 +1,7 @@
+import { test, expect } from '@playwright/test'
+
+test('should navigate to the guests page', async ({ page }) => {
+ await page.goto('/dashboard/guests')
+
+ await expect(page.getByRole('heading', { name: 'Guests' })).toContainText('Guests')
+})
\ No newline at end of file