mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
fix :: lints
This commit is contained in:
parent
8fe0e4467d
commit
64addb3205
5 changed files with 16 additions and 18 deletions
|
|
@ -51,7 +51,9 @@ const UsersFilter = ({ filterList }) => {
|
|||
className="workspace-settings-filter-items d-flex align-items-center "
|
||||
data-cy="user-status-select-continer"
|
||||
>
|
||||
<div className="tj-text-xsm mx-3" data-cy="users-filter-label">Showing</div>
|
||||
<div className="tj-text-xsm mx-3" data-cy="users-filter-label">
|
||||
Showing
|
||||
</div>
|
||||
<div className="users-filter-dropdown" data-cy="users-filter-input">
|
||||
<Select
|
||||
options={userStatusOptions}
|
||||
|
|
|
|||
|
|
@ -29,10 +29,16 @@ const UsersTable = ({
|
|||
<table data-testid="usersTable" className="users-table table table-vcenter h-100">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-cy="users-table-name-column-header">{translator('header.organization.menus.manageUsers.name', 'Name')}</th>
|
||||
<th data-cy="users-table-email-column-header">{translator('header.organization.menus.manageUsers.email', 'Email')}</th>
|
||||
<th data-cy="users-table-name-column-header">
|
||||
{translator('header.organization.menus.manageUsers.name', 'Name')}
|
||||
</th>
|
||||
<th data-cy="users-table-email-column-header">
|
||||
{translator('header.organization.menus.manageUsers.email', 'Email')}
|
||||
</th>
|
||||
{users && users[0]?.status ? (
|
||||
<th data-cy="users-table-status-column-header">{translator('header.organization.menus.manageUsers.status', 'Status')}</th>
|
||||
<th data-cy="users-table-status-column-header">
|
||||
{translator('header.organization.menus.manageUsers.status', 'Status')}
|
||||
</th>
|
||||
) : (
|
||||
<th className="w-1"></th>
|
||||
)}
|
||||
|
|
@ -112,10 +118,11 @@ const UsersTable = ({
|
|||
data-tooltip-content="Copy invitation link"
|
||||
width="12"
|
||||
fill="#889096"
|
||||
|
||||
name="copy"
|
||||
/>
|
||||
<p className="tj-text-xsm" data-cy="copy-invitation-link">Copy link</p>
|
||||
<p className="tj-text-xsm" data-cy="copy-invitation-link">
|
||||
Copy link
|
||||
</p>
|
||||
</span>
|
||||
</CopyToClipboard>
|
||||
<Tooltip id="tooltip-for-copy-invitation-link" className="tooltip" />
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ export function FileDropzone({ handleClick, hiddenFileInput, errors, handleFileC
|
|||
accept: 'text/csv',
|
||||
});
|
||||
const [fileData, setFileData] = useState();
|
||||
|
||||
const files =
|
||||
acceptedFiles.length > 0
|
||||
? acceptedFiles
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ import SolidIcon from '@/_ui/Icon/SolidIcons';
|
|||
import { useTranslation } from 'react-i18next';
|
||||
import { ButtonSolid } from '@/_ui/AppButton/AppButton';
|
||||
import { toast } from 'react-hot-toast';
|
||||
import { useDropzone } from 'react-dropzone';
|
||||
import { FileDropzone } from './FileDropzone';
|
||||
|
||||
function InviteUsersForm({
|
||||
|
|
@ -21,10 +20,6 @@ function InviteUsersForm({
|
|||
const [activeTab, setActiveTab] = useState(1);
|
||||
|
||||
const hiddenFileInput = useRef(null);
|
||||
const { acceptedFiles } = useDropzone({
|
||||
onDrop,
|
||||
accept: 'text/csv',
|
||||
});
|
||||
|
||||
const onDrop = useCallback((acceptedFiles) => {
|
||||
const file = acceptedFiles[0];
|
||||
|
|
@ -40,12 +35,6 @@ function InviteUsersForm({
|
|||
hiddenFileInput.current.click();
|
||||
};
|
||||
|
||||
const files = acceptedFiles.map((file) => (
|
||||
<li key={file.path}>
|
||||
{file.path} - {file.size} bytes
|
||||
</li>
|
||||
));
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="animation-fade invite-user-drawer-wrap">
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ function MultiSelectUser({
|
|||
<div>
|
||||
<input
|
||||
type="checkbox"
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
onClick={(e) => {
|
||||
onSelect([...selectedValues, option]);
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue