File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed
Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { Link } from "react-router-dom"
99function 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11import { useState } from "react"
2+ import { PrimaryButton } from "@servicestack/react"
23import LayoutPage from "@/components/LayoutPage"
34import SrcPage from "@/components/SrcPage"
4- import { PrimaryButton } from "@servicestack/react"
55
66export 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 >
Original file line number Diff line number Diff 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 } , [ ] )
You can’t perform that action at this time.
0 commit comments