34 |
{selected}
35 |
36 | {
40 | resetScroll();
41 | moveToFirst();
42 | }}
43 | disabled={!hasPreviousPage}
44 | />
45 | {
49 | resetScroll();
50 | movePrevious();
51 | }}
52 | disabled={!hasPreviousPage}
53 | />
54 | Page {currentPage}
55 | {
59 | resetScroll();
60 | moveNext();
61 | }}
62 | disabled={!hasNextPage}
63 | />
64 |
65 |
66 | );
67 | };
68 |
--------------------------------------------------------------------------------
/EditableTable/components/ErrorIcon.tsx:
--------------------------------------------------------------------------------
1 | /* eslint-disable react/display-name */
2 | import { FontIcon, ITooltipProps, TooltipHost } from '@fluentui/react';
3 | import React, { memo } from 'react';
4 | import { error } from '../styles/ComponentsStyles';
5 | import { useAppSelector } from '../store/hooks';
6 |
7 | export interface IErrorProps {
8 | id: string;
9 | isRequired: boolean;
10 | }
11 |
12 | export const ErrorIcon = memo(({ id, isRequired } : IErrorProps) => {
13 | const invalidFields = useAppSelector(state => state.error.invalidFields);
14 | const invalidField = invalidFields.find(field => field.fieldId === id);
15 |
16 | const tooltipProps: ITooltipProps = {
17 | onRenderContent: () =>
18 |