chore: generate
This commit is contained in:
@@ -471,9 +471,7 @@ export function NewHome() {
|
|||||||
>
|
>
|
||||||
<Show
|
<Show
|
||||||
when={groups().length > 0}
|
when={groups().length > 0}
|
||||||
fallback={
|
fallback={<HomeSessionsEmpty onNewSession={newSessionProject() ? openNewSession : undefined} />}
|
||||||
<HomeSessionsEmpty onNewSession={newSessionProject() ? openNewSession : undefined} />
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<div class="pt-3 flex flex-col gap-6">
|
<div class="pt-3 flex flex-col gap-6">
|
||||||
<For each={groups()}>
|
<For each={groups()}>
|
||||||
@@ -1221,13 +1219,7 @@ function HomeSessionsEmpty(props: { onNewSession?: () => void }) {
|
|||||||
</p>
|
</p>
|
||||||
<Show when={props.onNewSession}>
|
<Show when={props.onNewSession}>
|
||||||
{(onNewSession) => (
|
{(onNewSession) => (
|
||||||
<ButtonV2
|
<ButtonV2 data-action="home-new-session" variant="neutral" size="normal" icon="edit" onClick={onNewSession()}>
|
||||||
data-action="home-new-session"
|
|
||||||
variant="neutral"
|
|
||||||
size="normal"
|
|
||||||
icon="edit"
|
|
||||||
onClick={onNewSession()}
|
|
||||||
>
|
|
||||||
{language.t("command.session.new")}
|
{language.t("command.session.new")}
|
||||||
</ButtonV2>
|
</ButtonV2>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user