use handleShowProfile instead of inline setShowProfile
This commit is contained in:
@@ -106,7 +106,7 @@ export default function Blog(props: { disableCustomTheme?: boolean }) {
|
|||||||
<Button
|
<Button
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
color="primary"
|
color="primary"
|
||||||
onClick={() => setShowProfile(true)}
|
onClick={handleShowProfile}
|
||||||
>
|
>
|
||||||
{currentUser.username}
|
{currentUser.username}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user