Skip to content

Commit

Permalink
chore: migrate the settings view to TSX
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomiguelino committed Dec 27, 2024
1 parent 7975b9f commit 120c06b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import classNames from 'classnames';

import { signOut } from '@/features/popupSlice';

export const Settings = () => {
export const Settings: React.FC = () => {
const dispatch = useDispatch();
const [isLoading, setIsLoading] = useState(false);
const [isLoading, setIsLoading] = useState<boolean>(false);

const handleSignOut = async (event) => {
const handleSignOut = async (event: React.MouseEvent<HTMLButtonElement>) => {
event.preventDefault();
setIsLoading(true);
dispatch(signOut());
Expand Down Expand Up @@ -56,4 +56,4 @@ export const Settings = () => {
</div>
</div>
);
};
};

0 comments on commit 120c06b

Please sign in to comment.