|
|
|
@ -17,9 +17,11 @@ import {
@@ -17,9 +17,11 @@ import {
|
|
|
|
|
import { ActionsForSelectedItemsRow } from '@/modules/tasks/components/actions-for-selected-items-row.component' |
|
|
|
|
import { getSelectedTasksMenuOptions } from '@/modules/tasks/config' |
|
|
|
|
|
|
|
|
|
interface IProps {} |
|
|
|
|
interface IProps { |
|
|
|
|
searchString?: string |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const MyTasksListSmart: FC<IProps> = () => { |
|
|
|
|
export const MyTasksListSmart: FC<IProps> = props => { |
|
|
|
|
const nav = useNav() |
|
|
|
|
|
|
|
|
|
const { selectedTasks, handleSelectTask, handleResetSelected } = |
|
|
|
@ -27,10 +29,19 @@ export const MyTasksListSmart: FC<IProps> = () => {
@@ -27,10 +29,19 @@ export const MyTasksListSmart: FC<IProps> = () => {
|
|
|
|
|
|
|
|
|
|
const { styles } = useTheme(createStyles) |
|
|
|
|
|
|
|
|
|
const { items: myTasks, isLoading } = useFetchTasksByFilter({ |
|
|
|
|
const { |
|
|
|
|
items: myTasks, |
|
|
|
|
isLoading, |
|
|
|
|
setLoadParams, |
|
|
|
|
} = useFetchTasksByFilter({ |
|
|
|
|
limit: 5, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
useEffect( |
|
|
|
|
() => setLoadParams({ searchString: props.searchString }), |
|
|
|
|
[props.searchString], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
const { |
|
|
|
|
handlePressSelectedTasksAction, |
|
|
|
|
handlePressOneTaskAction, |
|
|
|
|