mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 03:18:31 +00:00
chore: generate
This commit is contained in:
parent
aee262f019
commit
1b107301fb
1 changed files with 2 additions and 10 deletions
|
|
@ -471,9 +471,7 @@ export function NewHome() {
|
|||
>
|
||||
<Show
|
||||
when={groups().length > 0}
|
||||
fallback={
|
||||
<HomeSessionsEmpty onNewSession={newSessionProject() ? openNewSession : undefined} />
|
||||
}
|
||||
fallback={<HomeSessionsEmpty onNewSession={newSessionProject() ? openNewSession : undefined} />}
|
||||
>
|
||||
<div class="pt-3 flex flex-col gap-6">
|
||||
<For each={groups()}>
|
||||
|
|
@ -1221,13 +1219,7 @@ function HomeSessionsEmpty(props: { onNewSession?: () => void }) {
|
|||
</p>
|
||||
<Show when={props.onNewSession}>
|
||||
{(onNewSession) => (
|
||||
<ButtonV2
|
||||
data-action="home-new-session"
|
||||
variant="neutral"
|
||||
size="normal"
|
||||
icon="edit"
|
||||
onClick={onNewSession()}
|
||||
>
|
||||
<ButtonV2 data-action="home-new-session" variant="neutral" size="normal" icon="edit" onClick={onNewSession()}>
|
||||
{language.t("command.session.new")}
|
||||
</ButtonV2>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue