mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
frontend fixes
This commit is contained in:
parent
1bd54eca76
commit
0e2ca5a3cf
6 changed files with 13 additions and 14 deletions
|
|
@ -79,7 +79,6 @@ export const BlankPage = function BlankPage({
|
|||
Create new application
|
||||
</ButtonSolid>
|
||||
<div className="col">
|
||||
|
||||
<ButtonSolid
|
||||
leftIcon="folderdownload"
|
||||
onChange={handleImportApp}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ export const Folders = function Folders({
|
|||
|
||||
useEffect(() => {
|
||||
updateSidebarNAV('All apps');
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
const handleSearch = (e) => {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ 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 { useDropzone } from 'react-dropzone';
|
||||
import { FileDropzone } from './FileDropzone';
|
||||
|
||||
function InviteUsersForm({
|
||||
|
|
@ -21,10 +21,10 @@ function InviteUsersForm({
|
|||
const [activeTab, setActiveTab] = useState(1);
|
||||
|
||||
const hiddenFileInput = useRef(null);
|
||||
const { acceptedFiles } = useDropzone({
|
||||
onDrop,
|
||||
accept: 'text/csv',
|
||||
});
|
||||
// const { acceptedFiles } = useDropzone({
|
||||
// onDrop,
|
||||
// accept: 'text/csv',
|
||||
// });
|
||||
|
||||
const onDrop = useCallback((acceptedFiles) => {
|
||||
const file = acceptedFiles[0];
|
||||
|
|
@ -40,11 +40,11 @@ function InviteUsersForm({
|
|||
hiddenFileInput.current.click();
|
||||
};
|
||||
|
||||
const files = acceptedFiles.map((file) => (
|
||||
<li key={file.path}>
|
||||
{file.path} - {file.size} bytes
|
||||
</li>
|
||||
));
|
||||
// const files = acceptedFiles.map((file) => (
|
||||
// <li key={file.path}>
|
||||
// {file.path} - {file.size} bytes
|
||||
// </li>
|
||||
// ));
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ export const ButtonBase = function ButtonBase(props) {
|
|||
disabled,
|
||||
rightIcon,
|
||||
leftIcon,
|
||||
Icon,
|
||||
...restProps
|
||||
} = props;
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ function MultiSelectUser({
|
|||
<div>
|
||||
<input
|
||||
type="checkbox"
|
||||
onClick={(e) => {
|
||||
onClick={() => {
|
||||
onSelect([...selectedValues, option]);
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export const Breadcrumbs = ({ darkMode }) => {
|
|||
const breadcrumbs = useBreadcrumbs(routes, { excludePaths: ['/'] });
|
||||
return (
|
||||
<ol className="breadcrumb breadcrumb-arrows">
|
||||
{breadcrumbs.map(({ breadcrumb, dataCy, beta }, i) => {
|
||||
{breadcrumbs.map(({ breadcrumb, beta }, i) => {
|
||||
if (i == 1 || breadcrumbs?.length == 1) {
|
||||
return (
|
||||
<div key={breadcrumb.key} className="tj-dashboard-header-title-wrap" data-cy="breadcrumb-title">
|
||||
|
|
|
|||
Loading…
Reference in a new issue