Skip to content

Commit

Permalink
feat: ✨ Added icon to reloadMessages button
Browse files Browse the repository at this point in the history
  • Loading branch information
Genio2003 committed Jan 26, 2024
1 parent f969dd7 commit 4537eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/UserProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Avatar, Body1, Button, Divider, Dropdown, Option, Subtitle1, Subtitle2, makeStyles } from "@fluentui/react-components";
import { CheckmarkStarburstFilled } from "@fluentui/react-icons";
import { CheckmarkStarburstFilled, CommentDismissFilled } from "@fluentui/react-icons";
import { useContext } from "react";
import { AppTheme, ThemeContext } from "../context/ThemeContext";
import { UserContext } from "../context/UserContext";
Expand Down Expand Up @@ -70,7 +70,7 @@ export const UserProfile: React.FC = () => {
<Option value="dark" text="Scuro">Scuro</Option>
</Dropdown>
<Subtitle2>Utilità</Subtitle2>
<Button onClick={() => {
<Button icon={<CommentDismissFilled />} onClick={() => {
localStorage.removeItem("dismissedMessages");
reloadMessages();
}}>Reimposta messaggi ignorati</Button>
Expand Down

0 comments on commit 4537eea

Please sign in to comment.