From 0202a4ebcdca132307e9ee349b2b5f23788f5340 Mon Sep 17 00:00:00 2001 From: Ali Hadi Mazeh Date: Wed, 19 Jun 2024 10:52:32 -0400 Subject: [PATCH] Added license header for Changed Revoke Invite to Revoke with archive box x mark as icon --- app/assets/locales/en.json | 2 +- .../admin/manage_users/InvitedUsersTable.jsx | 6 +++--- .../admin/manage_users/useRevokeUserInvite.jsx | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/app/assets/locales/en.json b/app/assets/locales/en.json index b2cc398100..18d1420098 100644 --- a/app/assets/locales/en.json +++ b/app/assets/locales/en.json @@ -230,7 +230,7 @@ "invited": { "time_sent": "Time Sent", "valid": "Valid", - "revoke_invite": "Revoke Invite" + "revoke": "Revoke" } }, "server_rooms": { diff --git a/app/javascript/components/admin/manage_users/InvitedUsersTable.jsx b/app/javascript/components/admin/manage_users/InvitedUsersTable.jsx index 31328fcf2a..2cfc2d70e0 100644 --- a/app/javascript/components/admin/manage_users/InvitedUsersTable.jsx +++ b/app/javascript/components/admin/manage_users/InvitedUsersTable.jsx @@ -18,7 +18,7 @@ import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { Table, Dropdown } from 'react-bootstrap'; import { useTranslation } from 'react-i18next'; -import { CheckIcon, XMarkIcon, XCircleIcon } from '@heroicons/react/24/solid'; +import { CheckIcon, XMarkIcon, ArchiveBoxXMarkIcon } from '@heroicons/react/24/solid'; import { EllipsisVerticalIcon } from '@heroicons/react/24/outline'; import SortBy from '../../shared_components/search/SortBy'; import useInvitations from '../../../hooks/queries/admin/manage_users/useInvitations'; @@ -81,8 +81,8 @@ export default function InvitedUsersTable({ searchInput }) { revokeUserInvite.mutate(invitation.id)}> - - {t('admin.manage_users.invited.revoke_invite')} + + {t('admin.manage_users.invited.revoke')} diff --git a/app/javascript/hooks/mutations/admin/manage_users/useRevokeUserInvite.jsx b/app/javascript/hooks/mutations/admin/manage_users/useRevokeUserInvite.jsx index ba9680160d..13eaab03d3 100644 --- a/app/javascript/hooks/mutations/admin/manage_users/useRevokeUserInvite.jsx +++ b/app/javascript/hooks/mutations/admin/manage_users/useRevokeUserInvite.jsx @@ -1,3 +1,19 @@ +// BigBlueButton open source conferencing system - http://www.bigbluebutton.org/. +// +// Copyright (c) 2022 BigBlueButton Inc. and by respective authors (see below). +// +// This program is free software; you can redistribute it and/or modify it under the +// terms of the GNU Lesser General Public License as published by the Free Software +// Foundation; either version 3.0 of the License, or (at your option) any later +// version. +// +// Greenlight is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +// PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License along +// with Greenlight; if not, see . + import { useMutation, useQueryClient } from 'react-query'; import { toast } from 'react-toastify'; import { useTranslation } from 'react-i18next';