imbric-theme 1.1.8 → 1.1.9
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.
|
@@ -74,6 +74,9 @@ export const DynamicTable = ({
|
|
|
74
74
|
handleChangeCheckboxDate,
|
|
75
75
|
isMultiSelectFilter,
|
|
76
76
|
dateRangeDefault,
|
|
77
|
+
linkReloadData,
|
|
78
|
+
isViewReload = false,
|
|
79
|
+
txtTootipIconReload,
|
|
77
80
|
}) => {
|
|
78
81
|
const [tableData, setTableData] = useState(optionsData)
|
|
79
82
|
const [columnsData, setColumnsData] = useState(opColumns)
|
|
@@ -132,6 +135,32 @@ export const DynamicTable = ({
|
|
|
132
135
|
|
|
133
136
|
return (
|
|
134
137
|
<div className={getStyles('opFunction')}>
|
|
138
|
+
{isViewReload ? (
|
|
139
|
+
<>
|
|
140
|
+
<span
|
|
141
|
+
data-tip
|
|
142
|
+
data-for="iconReload"
|
|
143
|
+
onMouseEnter={handleMouseEnter}
|
|
144
|
+
onMouseLeave={handleMouseLeave}
|
|
145
|
+
>
|
|
146
|
+
<Icon
|
|
147
|
+
size="lg"
|
|
148
|
+
name="iconReload"
|
|
149
|
+
color="highlight"
|
|
150
|
+
background="transparent"
|
|
151
|
+
onClick={linkReloadData}
|
|
152
|
+
id="idIconReload"
|
|
153
|
+
/>
|
|
154
|
+
</span>
|
|
155
|
+
|
|
156
|
+
{isToolTipMounted ? (
|
|
157
|
+
<ReactTooltip id="iconReload" type="error">
|
|
158
|
+
<span>{txtTootipIconReload}</span>
|
|
159
|
+
</ReactTooltip>
|
|
160
|
+
) : null}
|
|
161
|
+
</>
|
|
162
|
+
) : null}
|
|
163
|
+
|
|
135
164
|
<div className={getStyles('opFunctionBoxTotal2')}>
|
|
136
165
|
{isViewTitleTable ? (
|
|
137
166
|
<>
|
|
@@ -487,6 +516,9 @@ DynamicTable.defaultProps = {
|
|
|
487
516
|
titleHeadingTableSecundary: '',
|
|
488
517
|
isMultiSelectFilter: false,
|
|
489
518
|
dateRangeDefault: 'quarter',
|
|
519
|
+
linkReloadData: () => {},
|
|
520
|
+
isViewReload: false,
|
|
521
|
+
txtTootipIconReload: '',
|
|
490
522
|
}
|
|
491
523
|
|
|
492
524
|
export default withStyles(styles)(DynamicTable)
|