Prompt to login when authenticated, click on suggestion card

- Improve styling for the side panel when not logged in
This commit is contained in:
sabaimran
2024-08-02 20:12:18 +05:30
parent d48a789442
commit bbe7491f2f
2 changed files with 20 additions and 6 deletions

View File

@@ -742,10 +742,8 @@ export default function SidePanel(props: SidePanelProps) {
{
!authenticatedData && enabled &&
<div className={`${styles.panelWrapper}`}>
<Link href="/">
<Link href="/" className="flex flex-col content-start items-start no-underline">
<Button variant="ghost"><House className="h-4 w-4 mr-1" />Home</Button>
</Link>
<Link href="/">
<Button variant="ghost"><StackPlus className="h-4 w-4 mr-1" />New Conversation</Button>
</Link>
<Link href={`/login?next=${encodeURIComponent(window.location.pathname)}`}> {/* Redirect to login page */}