mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: Remove unused noteModalVisible prop from NotesSection component
This commit is contained in:
@@ -9,7 +9,6 @@ import type { NoteItem } from "../api/types";
|
||||
|
||||
interface NotesSectionProps {
|
||||
notes: NoteItem[] | undefined;
|
||||
noteModalVisible: boolean;
|
||||
setNoteModalVisible: (visible: boolean) => void;
|
||||
}
|
||||
|
||||
|
||||
@@ -390,11 +390,7 @@ export default function AlertDetailScreen({ route }: Props): React.JSX.Element {
|
||||
) : null}
|
||||
|
||||
{/* Internal Notes */}
|
||||
<NotesSection
|
||||
notes={notes}
|
||||
noteModalVisible={noteModalVisible}
|
||||
setNoteModalVisible={setNoteModalVisible}
|
||||
/>
|
||||
<NotesSection notes={notes} setNoteModalVisible={setNoteModalVisible} />
|
||||
|
||||
<AddNoteModal
|
||||
visible={noteModalVisible}
|
||||
|
||||
@@ -391,11 +391,7 @@ export default function AlertEpisodeDetailScreen({
|
||||
) : null}
|
||||
|
||||
{/* Internal Notes */}
|
||||
<NotesSection
|
||||
notes={notes}
|
||||
noteModalVisible={noteModalVisible}
|
||||
setNoteModalVisible={setNoteModalVisible}
|
||||
/>
|
||||
<NotesSection notes={notes} setNoteModalVisible={setNoteModalVisible} />
|
||||
|
||||
<AddNoteModal
|
||||
visible={noteModalVisible}
|
||||
|
||||
@@ -420,11 +420,7 @@ export default function IncidentDetailScreen({
|
||||
) : null}
|
||||
|
||||
{/* Internal Notes */}
|
||||
<NotesSection
|
||||
notes={notes}
|
||||
noteModalVisible={noteModalVisible}
|
||||
setNoteModalVisible={setNoteModalVisible}
|
||||
/>
|
||||
<NotesSection notes={notes} setNoteModalVisible={setNoteModalVisible} />
|
||||
|
||||
<AddNoteModal
|
||||
visible={noteModalVisible}
|
||||
|
||||
@@ -410,11 +410,7 @@ export default function IncidentEpisodeDetailScreen({
|
||||
) : null}
|
||||
|
||||
{/* Internal Notes */}
|
||||
<NotesSection
|
||||
notes={notes}
|
||||
noteModalVisible={noteModalVisible}
|
||||
setNoteModalVisible={setNoteModalVisible}
|
||||
/>
|
||||
<NotesSection notes={notes} setNoteModalVisible={setNoteModalVisible} />
|
||||
|
||||
<AddNoteModal
|
||||
visible={noteModalVisible}
|
||||
|
||||
Reference in New Issue
Block a user