mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
lint
This commit is contained in:
parent
a434731d3a
commit
eb12da8b82
@ -199,10 +199,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
|||||||
}
|
}
|
||||||
handleSendMessage(event, messageInput);
|
handleSendMessage(event, messageInput);
|
||||||
})}
|
})}
|
||||||
{isArboretumVisible && (
|
{isArboretumVisible && <Arboretum />}
|
||||||
<Arboretum />
|
|
||||||
)}
|
|
||||||
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,9 +7,9 @@ export const showArboretumStore = atom<boolean>(false);
|
|||||||
// Create a hook for easier usage in React components
|
// Create a hook for easier usage in React components
|
||||||
export function useArboretumVisibility() {
|
export function useArboretumVisibility() {
|
||||||
const isVisible = useStore(showArboretumStore);
|
const isVisible = useStore(showArboretumStore);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isArboretumVisible: isVisible,
|
isArboretumVisible: isVisible,
|
||||||
toggleArboretum: () => showArboretumStore.set(!isVisible)
|
toggleArboretum: () => showArboretumStore.set(!isVisible),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user