generated from taylorbryant/gatsby-starter-tailwind
-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip move setting area coordinates to its own page
- Loading branch information
viet nguyen
committed
Nov 12, 2023
1 parent
bf88df7
commit e4405fc
Showing
7 changed files
with
38 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
import { DashboardPageProps, getPageDataForEdit } from '../page' | ||
import { AreaLatLngForm } from '../general/AreaLatLngForm' | ||
import { DashboardPageProps, getPageDataForEdit, PageContainer } from '../page' | ||
|
||
export default async function AreaEditPage ({ params }: DashboardPageProps): Promise<any> { | ||
const { area } = await getPageDataForEdit(params.slug) | ||
return (<div>Attributes {JSON.stringify(area, null, 2)}</div>) | ||
const { area: { uuid, metadata: { lat, lng } } } = await getPageDataForEdit(params.slug) | ||
|
||
return ( | ||
<PageContainer> | ||
<AreaLatLngForm initLat={lat} initLng={lng} uuid={uuid} /> | ||
</PageContainer> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { PageContainer } from './page' | ||
|
||
export default function Loading (): JSX.Element { | ||
return ( | ||
<PageContainer> | ||
<div className='card card-compact card-bordered w-full h-56 bg-base-300/60' /> | ||
<div className='card card-compact card-bordered w-full h-56 bg-base-300/60' /> | ||
<div className='card card-compact card-bordered w-full h-56 bg-base-300/60' /> | ||
</PageContainer> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters