-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: plocket <[email protected]> Co-authored-by: Jeff Korenstein <[email protected]> Co-authored-by: Tai Phuong <[email protected]> Co-authored-by: Michael Hughes <[email protected]> Co-authored-by: Justin Song <[email protected]>
- Loading branch information
1 parent
1571ddd
commit 25e70ee
Showing
4 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { json, type DataFunctionArgs } from '@remix-run/node' | ||
import { Outlet, useLoaderData } from '@remix-run/react' | ||
import { Fragment } from 'react' | ||
|
||
export async function loader({ params }: DataFunctionArgs) { | ||
// // From the database: | ||
// const user = await prisma.user.findFirst({ | ||
// select: { | ||
// id: true, | ||
// name: true, | ||
// username: true, | ||
// createdAt: true, | ||
// image: { select: { id: true } }, | ||
// }, | ||
// where: { | ||
// username: params.username, | ||
// }, | ||
// }) | ||
|
||
return json({ | ||
id: params.analysisid | ||
}) | ||
} | ||
|
||
export default function Analysis () { | ||
const data = useLoaderData<typeof loader>() | ||
const id = data?.id | ||
|
||
return ( | ||
<Fragment> | ||
<h1>{ id }</h1> | ||
{/* <Outlet /> */} | ||
</Fragment> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
heat-stack/app/routes/cases+/case_summaries+/$summaryid_+/index.tsx
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,10 @@ | ||
import { Outlet } from '@remix-run/react' | ||
|
||
export default function Cases() { | ||
return( | ||
<div className="w-100p h-100p bk-primary"> | ||
<h1>Case name</h1> | ||
<Outlet/> | ||
</div> | ||
) | ||
} |
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 @@ | ||
export default function Cases() { | ||
return( | ||
<div className="w-96 bg-slate-400 "> | ||
<h1>Cases</h1> | ||
<ul> | ||
<li>Case 1</li> | ||
<li>Case 2</li> | ||
</ul> | ||
</div> | ||
) | ||
} |