Skip to content

Commit

Permalink
Add missing BlitzPage type to Home page (#3716)
Browse files Browse the repository at this point in the history
  • Loading branch information
beerose authored Aug 12, 2022
1 parent f88702c commit 1e0ec7a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-carrots-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---

Add `BlitzPage` type to Home pages in app templates
4 changes: 2 additions & 2 deletions apps/toolkit-app/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useCurrentUser } from "app/core/hooks/useCurrentUser"
import logout from "app/auth/mutations/logout"
import logo from "public/logo.png"
import { useMutation } from "@blitzjs/rpc"
import { Routes } from "@blitzjs/next"
import { Routes, BlitzPage } from "@blitzjs/next"

/*
* This file is just for a pleasant getting started page for your new app.
Expand Down Expand Up @@ -53,7 +53,7 @@ const UserInfo = () => {
}
}

const Home = () => {
const Home: BlitzPage = () => {
return (
<Layout title="Home">
<div className="container">
Expand Down
4 changes: 2 additions & 2 deletions packages/generator/templates/app/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useCurrentUser } from "app/core/hooks/useCurrentUser"
import logout from "app/auth/mutations/logout"
import logo from "public/logo.png"
import { useMutation } from "@blitzjs/rpc"
import { Routes } from "@blitzjs/next"
import { Routes, BlitzPage } from "@blitzjs/next"

/*
* This file is just for a pleasant getting started page for your new app.
Expand Down Expand Up @@ -53,7 +53,7 @@ const UserInfo = () => {
}
}

const Home = () => {
const Home: BlitzPage = () => {
return (
<Layout title="Home">
<div className="container">
Expand Down
4 changes: 2 additions & 2 deletions packages/generator/templates/minimalapp/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Image from 'next/image'
import { NextPage } from "next"
import { BlitzPage } from "@blitzjs/next"
import logo from "public/logo.png"

/*
* This file is just for a pleasant getting started page for your new app.
* You can delete everything in here and start from scratch if you like.
*/

const Home: NextPage = () => {
const Home: BlitzPage = () => {
return (
<div className="container">
<main>
Expand Down

0 comments on commit 1e0ec7a

Please sign in to comment.