fix(app): task tool rendering
This commit is contained in:
parent
21475a1dfd
commit
50f3e74d05
3 changed files with 87 additions and 32 deletions
|
|
@ -54,6 +54,13 @@ export default function Layout(props: ParentProps) {
|
|||
navigate(`/${params.dir}/session/${sessionID}`)
|
||||
}
|
||||
|
||||
const sessionHref = (sessionID: string) => {
|
||||
if (params.dir) return `/${params.dir}/session/${sessionID}`
|
||||
return `/session/${sessionID}`
|
||||
}
|
||||
|
||||
const syncSession = (sessionID: string) => sync.session.sync(sessionID)
|
||||
|
||||
return (
|
||||
<DataProvider
|
||||
data={sync.data}
|
||||
|
|
@ -62,6 +69,8 @@ export default function Layout(props: ParentProps) {
|
|||
onQuestionReply={replyToQuestion}
|
||||
onQuestionReject={rejectQuestion}
|
||||
onNavigateToSession={navigateToSession}
|
||||
onSessionHref={sessionHref}
|
||||
onSyncSession={syncSession}
|
||||
>
|
||||
<LocalProvider>{props.children}</LocalProvider>
|
||||
</DataProvider>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue