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