-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #842 from Amsterdam/refactor/remove-debriefing-upd…
…ate-delete Remove code, files
- Loading branch information
Showing
8 changed files
with
33 additions
and
153 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
src/app/components/case/debriefings/DebriefDeleteButton/DebriefDeleteButton.tsx
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
src/app/components/case/debriefings/DebriefForm/DebriefEditForm.tsx
This file was deleted.
Oops, something went wrong.
24 changes: 6 additions & 18 deletions
24
src/app/components/cases/CaseTimeline/components/EventWrapper.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,19 @@ | ||
import React from "react" | ||
import type { Field } from "../helpers/fields" | ||
import EventData from "./EventData" | ||
import ButtonEditEvent from "./ButtonEditEvent" | ||
import to from "app/routing/utils/to" | ||
|
||
type Props = { | ||
fields: Field[] | ||
caseEvent: Components.Schemas.CaseEvent | ||
isNested?: boolean | ||
pathName?: string | ||
} | ||
|
||
const EventWrapper: React.FC<Props> = ({ fields, caseEvent: { case: caseId, event_values, emitter_id, emitter_is_editable, emitter_is_editable_until }, isNested, pathName }) => ( | ||
<> | ||
<EventData | ||
fields={ fields } | ||
values={ event_values } | ||
isNested={ isNested } | ||
/> | ||
{ emitter_is_editable_until && pathName !== undefined && | ||
<ButtonEditEvent | ||
target={ to(`/zaken/:id/${ pathName }/:${ pathName }Id`, { id: caseId, [`${ pathName }Id`]: emitter_id }) } | ||
disabled={ !emitter_is_editable } | ||
editable_until={ emitter_is_editable_until } | ||
/> | ||
} | ||
</> | ||
const EventWrapper: React.FC<Props> = ({ fields, caseEvent: { event_values }, isNested }) => ( | ||
<EventData | ||
fields={ fields } | ||
values={ event_values } | ||
isNested={ isNested } | ||
/> | ||
) | ||
|
||
export default EventWrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters