Skip to content

Commit 1d3f49a

Browse files
committed
updates
1 parent b9734b1 commit 1d3f49a

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

MyApp.Client/src/pages/bookings-auto.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Link } from "react-router-dom"
99
function Index() {
1010

1111

12-
return (<Page title="Bookings CRUD (Auto)" className="max-w-screen-lg">
12+
return (<Page title="Bookings CRUD (Auto Columns)" className="max-w-screen-lg">
1313

1414
<div className="mb-4 flex justify-end">
1515
<Link to="/bookings-custom" className="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300">
@@ -21,7 +21,7 @@ function Index() {
2121
<AutoQueryGrid type="Booking"/>
2222

2323
<div className="mt-4 text-center text-gray-400 flex justify-center -ml-6">
24-
<SrcPage path="bookings-crud/index.tsx"/>
24+
<SrcPage path="bookings-auto.tsx"/>
2525
</div>
2626
</div>
2727

MyApp.Client/src/pages/bookings-custom.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function Index() {
1010
const { currency } = useFormatters()
1111
const [coupon, setCoupon] = useState<any>(null)
1212

13-
return (<Page title="Bookings CRUD (Custom)" className="max-w-screen-lg">
13+
return (<Page title="Bookings CRUD (Custom Columns)" className="max-w-screen-lg">
1414

1515
<div className="mb-4 flex justify-end">
1616
<Link to="/bookings-auto" className="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300">
@@ -79,7 +79,7 @@ function Index() {
7979
)}
8080

8181
<div className="mt-4 text-center text-gray-400 flex justify-center -ml-6">
82-
<SrcPage path="bookings-crud/index.tsx"/>
82+
<SrcPage path="bookings-custom.tsx"/>
8383
</div>
8484
</div>
8585

MyApp.Client/src/pages/counter.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { useState } from "react"
2+
import { PrimaryButton } from "@servicestack/react"
23
import LayoutPage from "@/components/LayoutPage"
34
import SrcPage from "@/components/SrcPage"
4-
import { PrimaryButton } from "@servicestack/react"
55

66
export default () => {
77
const [count, setCount] = useState(0)
8-
const title = `Counter`
9-
10-
return (<LayoutPage title={title}>
8+
return (<LayoutPage title="Counter">
119
<p className="my-4">Current count: {count}</p>
1210

1311
<PrimaryButton onClick={() => setCount(count + 1)}>Click me</PrimaryButton>

MyApp.Client/src/pages/weather.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export default (): React.JSX.Element => {
1111
useEffect(() => {
1212
(async () => {
1313
const api = await client.api(new GetWeatherForecast())
14-
if (api.succeeded) {
15-
setForecasts(api.response!)
14+
if (api.response) {
15+
setForecasts(api.response)
1616
}
1717
})()
1818
}, [])

0 commit comments

Comments
 (0)