- {this.renderErrorMessage()}
-
{this.props.resources?.adresseKomponent_header}
-
{this.props.resources?.adresseKomponent_sublabel}
-
- {this.state.isLoading && (
-
-
-
- )}
- {this.state.hasLoadError && (
-
{this.props.resources?.adresseKomponent_loadError}
- )}
-
- {this.state.receiverTreeNodes.length > 0 && this.renderSelects()}
- {this.state.selectedReceiver && (
-
- {`${this.props.resources?.adresseKomponent_skjemaSendesTil} `}
- {this.state.selectedReceiver}
-
- )}
-
- );
- }
-}
+ };
+
+ return (
+
+
{resources?.adresseKomponent_header}
+
{resources?.adresseKomponent_sublabel}
+
+ {isLoading && (
+
+
+
+ )}
+ {hasLoadError &&
{resources?.adresseKomponent_loadError}}
+
+ {receiverTreeNodes.length > 0 && renderSelects()}
+ {selectedReceiver && (
+
+ {`${resources?.adresseKomponent_skjemaSendesTil} `}
+ {selectedReceiver}
+
+ )}
+
+ );
+};
export default ReceiverComponent;
diff --git a/src/components/formcomponents/repeat/delete-button.tsx b/src/components/formcomponents/repeat/DeleteButton.tsx
similarity index 61%
rename from src/components/formcomponents/repeat/delete-button.tsx
rename to src/components/formcomponents/repeat/DeleteButton.tsx
index 731ffdf1..8741e17c 100644
--- a/src/components/formcomponents/repeat/delete-button.tsx
+++ b/src/components/formcomponents/repeat/DeleteButton.tsx
@@ -1,39 +1,34 @@
-import React, { useState } from 'react';
+import { useState } from 'react';
-import { QuestionnaireItem, QuestionnaireResponseItemAnswer } from 'fhir/r4';
-import { connect } from 'react-redux';
+import { QuestionnaireItem } from 'fhir/r4';
+import { useDispatch } from 'react-redux';
import { ThunkDispatch } from 'redux-thunk';
import Button from '@helsenorge/designsystem-react/components/Button';
-import Icon from '@helsenorge/designsystem-react/components/Icons';
+import Icon from '@helsenorge/designsystem-react/components/Icon';
import TrashCan from '@helsenorge/designsystem-react/components/Icons/TrashCan';
import Modal from '@helsenorge/designsystem-react/components/Modal';
import { NewValueAction, deleteRepeatItemAsync } from '../../../actions/newValue';
import { GlobalState } from '../../../reducers';
-import { mapStateToProps, mergeProps, mapDispatchToProps } from '../../../util/map-props';
import { Path } from '../../../util/refero-core';
-import { RenderContext } from '../../../util/renderContext';
-import { Resources } from '../../../util/resources';
+import { useExternalRenderContext } from '@/context/externalRenderContext';
-interface Props {
- item: QuestionnaireItem;
- path: Array