TP-28649 | Removed extra commit
This commit is contained in:
@@ -30,7 +30,6 @@ const Metrics = () => {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const [showCustomModal, setShowCustomModal] = useState(false);
|
const [showCustomModal, setShowCustomModal] = useState(false);
|
||||||
const [metricId, setMetricId] = useState('');
|
|
||||||
|
|
||||||
const { metricsDetails, isLoading } = useAppSelector(
|
const { metricsDetails, isLoading } = useAppSelector(
|
||||||
(state) => state.litmusFormDataStore,
|
(state) => state.litmusFormDataStore,
|
||||||
@@ -153,10 +152,7 @@ const Metrics = () => {
|
|||||||
|
|
||||||
<div className={`${commonStyles['action-btn']}`}>
|
<div className={`${commonStyles['action-btn']}`}>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => setShowCustomModal(true)}
|
||||||
setShowCustomModal(true);
|
|
||||||
setMetricId('');
|
|
||||||
}}
|
|
||||||
className={commonStyles['height-40']}
|
className={commonStyles['height-40']}
|
||||||
disabled={!isAdmin}
|
disabled={!isAdmin}
|
||||||
>
|
>
|
||||||
@@ -173,10 +169,6 @@ const Metrics = () => {
|
|||||||
theme="alpine"
|
theme="alpine"
|
||||||
rowHeight={80}
|
rowHeight={80}
|
||||||
paginationWrapperClasses="pagination-wrapper"
|
paginationWrapperClasses="pagination-wrapper"
|
||||||
onRowClicked={(event) => {
|
|
||||||
setShowCustomModal(true);
|
|
||||||
setMetricId(event.data?.metricId);
|
|
||||||
}}
|
|
||||||
PaginationComponent={
|
PaginationComponent={
|
||||||
<Pagination
|
<Pagination
|
||||||
totalCount={metricsDetails?.totalSize || 0}
|
totalCount={metricsDetails?.totalSize || 0}
|
||||||
@@ -196,7 +188,6 @@ const Metrics = () => {
|
|||||||
<CreateMetricModal
|
<CreateMetricModal
|
||||||
onClose={() => setShowCustomModal(false)}
|
onClose={() => setShowCustomModal(false)}
|
||||||
showCustomModal={showCustomModal}
|
showCustomModal={showCustomModal}
|
||||||
metricId={metricId}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user