Skip to content

Commit 49ff19e

Browse files
UjjwalDhakal7frozenhelium
authored andcommitted
Remove unwanted link from EventDetail page
- Remove form-field No. of people targeted from DREF Forms
1 parent c7a3863 commit 49ff19e

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

src/views/DrefApplicationForm/EventDetail/index.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ function EventDetail(props: Props) {
5353

5454
const totalPopulationRiskImminentLink = 'https://ifrcorg.sharepoint.com/sites/IFRCSharing/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FIFRCSharing%2FShared%20Documents%2FDREF%2FHum%20Pop%20Definitions%20for%20DREF%20Form%5F21072022%2Epdf&parent=%2Fsites%2FIFRCSharing%2FShared%20Documents%2FDREF&p=true&ga=1';
5555
const totalPeopleAffectedSlowSuddenLink = 'https://ifrcorg.sharepoint.com/sites/IFRCSharing/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FIFRCSharing%2FShared%20Documents%2FDREF%2FHum%20Pop%20Definitions%20for%20DREF%20Form%5F21072022%2Epdf&parent=%2Fsites%2FIFRCSharing%2FShared%20Documents%2FDREF&p=true&ga=1';
56-
const peopleTargetedLink = 'https://ifrcorg.sharepoint.com/sites/IFRCSharing/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FIFRCSharing%2FShared%20Documents%2FDREF%2FHum%20Pop%20Definitions%20for%20DREF%20Form%5F21072022%2Epdf&parent=%2Fsites%2FIFRCSharing%2FShared%20Documents%2FDREF&p=true&ga=1';
5756
const peopleInNeedLink = 'https://ifrcorg.sharepoint.com/sites/IFRCSharing/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FIFRCSharing%2FShared%20Documents%2FDREF%2FHum%20Pop%20Definitions%20for%20DREF%20Form%5F21072022%2Epdf&parent=%2Fsites%2FIFRCSharing%2FShared%20Documents%2FDREF&p=true&ga=1';
5857

5958
const {
@@ -355,27 +354,6 @@ function EventDetail(props: Props) {
355354
disabled={disabled}
356355
/>
357356
)}
358-
<NumberInput
359-
label={(
360-
<>
361-
{/* FIXME: use string template */}
362-
{strings.drefFormPeopleTargeted}
363-
<Link
364-
title={strings.drefFormClickEmergencyResponseFramework}
365-
href={peopleTargetedLink}
366-
external
367-
>
368-
<WikiHelpSectionLineIcon />
369-
</Link>
370-
</>
371-
)}
372-
name="num_assisted"
373-
value={value?.num_assisted}
374-
onChange={setFieldValue}
375-
error={error?.num_assisted}
376-
hint={strings.drefFormPeopleTargetedDescription}
377-
disabled={disabled}
378-
/>
379357
{/* FIXME: use grid to fix the empty div issue */}
380358
{/* NOTE: Empty div to preserve the layout */}
381359
<div />

src/views/DrefApplicationForm/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const schema: DrefFormSchema = {
152152

153153
// EVENT DETAILS
154154
num_affected: { validations: [positiveIntegerCondition] },
155-
num_assisted: { validations: [positiveIntegerCondition] },
155+
156156
// none
157157

158158
// ACTIONS

0 commit comments

Comments
 (0)