Skip to content

Commit

Permalink
Update handler names
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwalsh0 committed Jun 14, 2024
1 parent 04229ba commit 500e1ba
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ui/components/app/confirm/info/row/alert-row/alert-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ export const AlertRow = ({

const [alertModalVisible, setAlertModalVisible] = useState<boolean>(false);

const handleCloseModal = () => {
const handleModalClose = () => {
setAlertModalVisible(false);
};

const handleOpenModal = () => {
const handleInlineAlertClick = () => {
setAlertModalVisible(true);
};

Expand All @@ -66,7 +66,10 @@ export const AlertRow = ({

const inlineAlert = hasFieldAlert ? (
<Box marginLeft={1}>
<InlineAlert onClick={handleOpenModal} severity={selectedAlertSeverity} />
<InlineAlert
onClick={handleInlineAlertClick}
severity={selectedAlertSeverity}
/>
</Box>
) : null;

Expand All @@ -76,8 +79,8 @@ export const AlertRow = ({
<MultipleAlertModal
alertKey={fieldAlerts[0].key}
ownerId={ownerId}
onFinalAcknowledgeClick={handleCloseModal}
onClose={handleCloseModal}
onFinalAcknowledgeClick={handleModalClose}
onClose={handleModalClose}
/>
)}
<ConfirmInfoRow {...confirmInfoRowProps} labelChildren={inlineAlert} />
Expand Down

0 comments on commit 500e1ba

Please sign in to comment.