Enable users to access platform settings and login options
Fixes the rendering of settings and login buttons in the header component, ensuring they are displayed correctly for user interaction. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 069d4324-6c40-4355-955e-c714a50de1ea Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/069d4324-6c40-4355-955e-c714a50de1ea/9tQ591o
This commit is contained in:
@ -118,26 +118,24 @@ export default function Home() {
|
|||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<Button
|
||||||
<Button
|
variant="ghost"
|
||||||
variant="ghost"
|
size="sm"
|
||||||
size="sm"
|
onClick={() => setIsLoginModalOpen(true)}
|
||||||
onClick={() => setIsSettingsModalOpen(true)}
|
data-testid="button-login"
|
||||||
data-testid="button-settings"
|
>
|
||||||
>
|
<User className="h-4 w-4" />
|
||||||
<Settings className="h-4 w-4" />
|
</Button>
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
variant="ghost"
|
|
||||||
size="sm"
|
|
||||||
onClick={() => setIsLoginModalOpen(true)}
|
|
||||||
data-testid="button-login"
|
|
||||||
>
|
|
||||||
<User className="h-4 w-4" />
|
|
||||||
</Button>
|
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
<Button
|
||||||
|
variant="ghost"
|
||||||
|
size="sm"
|
||||||
|
onClick={() => setIsSettingsModalOpen(true)}
|
||||||
|
data-testid="button-settings"
|
||||||
|
>
|
||||||
|
<Settings className="h-4 w-4" />
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user