mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 22:06:17 +00:00
feat: use function expression for component
This commit is contained in:
@@ -9,12 +9,12 @@ export interface UserConfirmUndoFriendshipModalProps {
|
||||
onClose: () => void;
|
||||
}
|
||||
|
||||
export const UserConfirmUndoFriendshipModal = ({
|
||||
export function UserConfirmUndoFriendshipModal({
|
||||
visible,
|
||||
displayName,
|
||||
onConfirm,
|
||||
onClose,
|
||||
}: UserConfirmUndoFriendshipModalProps) => {
|
||||
}: UserConfirmUndoFriendshipModalProps) {
|
||||
const { t } = useTranslation("user_profile");
|
||||
|
||||
return (
|
||||
@@ -37,4 +37,4 @@ export const UserConfirmUndoFriendshipModal = ({
|
||||
</div>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user