namirasoft-site-react 1.3.443 → 1.3.444

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,47 +1,50 @@
1
1
  import { ConfigProvider, Table } from 'antd';
2
2
  import type { TableProps } from 'antd';
3
- import { IBaseComponentProps } from '../main';
3
+ import { IBaseComponentProps } from '../props/IBaseComponentProps';
4
4
  import Styles from "./NSTimeTable.module.css"
5
5
 
6
- interface DataType {
7
- key: string;
8
- year: string;
9
- month: string;
10
- week: string;
11
- today: string;
6
+ interface DataType
7
+ {
8
+ key: string;
9
+ year: string;
10
+ month: string;
11
+ week: string;
12
+ today: string;
12
13
  }
13
14
 
14
- export interface NSTimeTableProps extends IBaseComponentProps {
15
- rows: DataType[];
16
- columns: TableProps<DataType>['columns'];
15
+ export interface NSTimeTableProps extends IBaseComponentProps
16
+ {
17
+ rows: DataType[];
18
+ columns: TableProps<DataType>['columns'];
17
19
  }
18
20
 
19
- const NSTimeTable = (props: NSTimeTableProps) => {
21
+ const NSTimeTable = (props: NSTimeTableProps) =>
22
+ {
20
23
 
21
- return (
22
- <ConfigProvider theme={{
23
- components: {
24
- Table: {
25
- headerBg: "#141B5C",
26
- headerColor: "#fff",
27
- headerSplitColor: "#141B5C",
28
- cellFontSize: 16,
29
- colorText: "#141B5C",
30
- }
31
- }
32
- }}>
33
- <Table
34
- columns={props.columns}
35
- dataSource={props.rows}
36
- bordered={false}
37
- rowClassName={Styles.custom_row}
38
- rowHoverable={false}
39
- scroll={{
40
- x: true
41
- }}
42
- />
43
- </ConfigProvider>
44
- )
24
+ return (
25
+ <ConfigProvider theme={{
26
+ components: {
27
+ Table: {
28
+ headerBg: "#141B5C",
29
+ headerColor: "#fff",
30
+ headerSplitColor: "#141B5C",
31
+ cellFontSize: 16,
32
+ colorText: "#141B5C",
33
+ }
34
+ }
35
+ }}>
36
+ <Table
37
+ columns={props.columns}
38
+ dataSource={props.rows}
39
+ bordered={false}
40
+ rowClassName={Styles.custom_row}
41
+ rowHoverable={false}
42
+ scroll={{
43
+ x: true
44
+ }}
45
+ />
46
+ </ConfigProvider>
47
+ )
45
48
  };
46
49
 
47
50
  export default NSTimeTable;