Skip to content

Commit 9d45c97

Browse files
ci: apply automated fixes
1 parent 6f94dbd commit 9d45c97

7 files changed

Lines changed: 23 additions & 23 deletions

File tree

examples/solid/authenticated-routes-firebase/src/auth.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ export type AuthContextType = {
1515

1616
const AuthContext = Solid.createContext<AuthContextType | null>(null)
1717

18-
export function AuthContextProvider(props: {
19-
children: Solid.JSX.Element
20-
}) {
18+
export function AuthContextProvider(props: { children: Solid.JSX.Element }) {
2119
const [user, setUser] = Solid.createSignal<User | null>(auth.currentUser)
2220
const [isInitialLoading, setIsInitialLoading] = Solid.createSignal(true)
2321
const isAuthenticated = () => !!user()

examples/solid/authenticated-routes-firebase/src/main.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {render} from 'solid-js/web'
1+
import { render } from 'solid-js/web'
22
import { RouterProvider, createRouter } from '@tanstack/solid-router'
33

44
import { routeTree } from './routeTree.gen'
5-
import { AuthContextProvider, useAuth } from './auth'
5+
import { AuthContextProvider, useAuth } from './auth'
66

77
import './styles.css'
88

@@ -46,7 +46,6 @@ function App() {
4646
)
4747
}
4848

49-
5049
const rootElement = document.getElementById('app')!
5150

5251
render(() => <App />, rootElement)

examples/solid/authenticated-routes-firebase/src/routes/_auth.invoices.$invoiceId.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ function InvoicePage() {
1616
return (
1717
<section class="grid gap-2">
1818
<h2 class="text-lg">
19-
<strong>Invoice No.</strong> #{loaderData().invoice.id.toString().padStart(2, '0')}
19+
<strong>Invoice No.</strong> #
20+
{loaderData().invoice.id.toString().padStart(2, '0')}
2021
</h2>
2122
<p>
2223
<strong>Invoice title:</strong> {loaderData().invoice.title}

examples/solid/authenticated-routes-firebase/src/routes/_auth.invoices.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Link, Outlet, createFileRoute } from '@tanstack/solid-router'
1+
import { Link, Outlet, createFileRoute } from '@tanstack/solid-router'
22

33
import { fetchInvoices } from '../posts'
44

examples/solid/authenticated-routes-firebase/src/routes/_auth.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { Link, Outlet, createFileRoute, redirect, useRouter } from '@tanstack/solid-router'
1+
import {
2+
Link,
3+
Outlet,
4+
createFileRoute,
5+
redirect,
6+
useRouter,
7+
} from '@tanstack/solid-router'
28
import { useAuth } from '../auth'
39

410
export const Route = createFileRoute('/_auth')({
@@ -55,11 +61,7 @@ function AuthLayout() {
5561
</Link>
5662
</li>
5763
<li>
58-
<button
59-
type="button"
60-
class="hover:underline"
61-
onClick={handleLogout}
62-
>
64+
<button type="button" class="hover:underline" onClick={handleLogout}>
6365
Logout
6466
</button>
6567
</li>

examples/solid/authenticated-routes-firebase/src/routes/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ export const Route = createFileRoute('/')({
1717
function HomeComponent() {
1818
return (
1919
<div class="p-4 max-w-3xl mx-auto">
20-
<h1 class="text-2xl font-bold mb-4">
21-
Welcome to TS Router + Firebase
22-
</h1>
20+
<h1 class="text-2xl font-bold mb-4">Welcome to TS Router + Firebase</h1>
2321

2422
<section class="mb-6 p-4 bg-slate-100 dark:bg-slate-800 rounded-lg">
2523
<h2 class="text-xl font-semibold mb-2">About This Template</h2>
26-
<p class="mb-2">
27-
This template demonstrates a SPA architecture using:
28-
</p>
24+
<p class="mb-2">This template demonstrates a SPA architecture using:</p>
2925
<ul class="list-disc list-inside mb-4">
3026
<li>TanStack Router for type-safe routing</li>
3127
<li>Firebase Client SDK for authentication</li>

examples/solid/authenticated-routes-firebase/src/routes/login.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { createFileRoute, redirect, useRouter, useRouterState } from '@tanstack/solid-router'
1+
import {
2+
createFileRoute,
3+
redirect,
4+
useRouter,
5+
useRouterState,
6+
} from '@tanstack/solid-router'
27
import { z } from 'zod'
38

49
import {
@@ -10,7 +15,6 @@ import { useAuth } from '../auth'
1015
import { sleep } from '../utils'
1116
import { siApple, siGithub, siGoogle } from 'simple-icons'
1217

13-
1418
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
1519
const fallback = '/dashboard' as const
1620

@@ -69,7 +73,7 @@ function LoginComponent() {
6973
fill="currentColor"
7074
aria-labelledby="githubIconTitle"
7175
role="img"
72-
style={{ "min-width": '20px' }}
76+
style={{ 'min-width': '20px' }}
7377
>
7478
<title id="githubIconTitle">GitHub Logo</title>
7579
<path d={siGithub.path} />

0 commit comments

Comments
 (0)