Skip to content

Commit

Permalink
Fix headless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho committed Sep 5, 2024
1 parent b368838 commit dce8f8c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions waspc/headless-test/examples/todoApp/src/client/App.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { Outlet } from 'react-router-dom'

import { Link } from 'wasp/client/router'
import { logout, useAuth } from 'wasp/client/auth'
import { useQuery, getDate } from 'wasp/client/operations'

import './Main.css'
import { getName } from './user'

export function App({ children }: { children: React.ReactNode }) {
export function App() {
const { data: user } = useAuth()
const { data: date } = useQuery(getDate)

Expand All @@ -31,7 +33,9 @@ export function App({ children }: { children: React.ReactNode }) {
</div>
)}
</header>
<main>{children}</main>
<main>
<Outlet />
</main>
<footer className="mt-8 text-center">Created with Wasp</footer>
</div>
)
Expand Down

0 comments on commit dce8f8c

Please sign in to comment.