mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: use function expression for component
This commit is contained in:
parent
40d2b36a20
commit
d4d94dfc4c
1 changed files with 3 additions and 3 deletions
|
@ -9,12 +9,12 @@ export interface UserConfirmUndoFriendshipModalProps {
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const UserConfirmUndoFriendshipModal = ({
|
export function UserConfirmUndoFriendshipModal({
|
||||||
visible,
|
visible,
|
||||||
displayName,
|
displayName,
|
||||||
onConfirm,
|
onConfirm,
|
||||||
onClose,
|
onClose,
|
||||||
}: UserConfirmUndoFriendshipModalProps) => {
|
}: UserConfirmUndoFriendshipModalProps) {
|
||||||
const { t } = useTranslation("user_profile");
|
const { t } = useTranslation("user_profile");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -37,4 +37,4 @@ export const UserConfirmUndoFriendshipModal = ({
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue