use handleShowProfile instead of inline setShowProfile

This commit is contained in:
2025-11-15 03:31:19 +05:30
parent ce91526599
commit 33e9d70b98

View File

@@ -106,7 +106,7 @@ export default function Blog(props: { disableCustomTheme?: boolean }) {
<Button
variant="outlined"
color="primary"
onClick={() => setShowProfile(true)}
onClick={handleShowProfile}
>
{currentUser.username}
</Button>