Skip to content

Commit 609e60e

Browse files
committed
fix: use appropriate formatted wiki links
1 parent 82abf2b commit 609e60e

File tree

11 files changed

+23
-10
lines changed

11 files changed

+23
-10
lines changed

src/components/Alert/i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"namespace": "common",
33
"strings": {
4-
"alertCopyErrorDetails": "alertCopyErrorDetails",
4+
"alertCopyErrorDetails": "Copy error details",
55
"closeButtonTitle": "Close"
66
}
77
}

src/components/domain/RiskImminentEvents/Gdacs/EventDetails/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ interface GdacsEventDetails {
2020
iso3: string;
2121
countryname: string;
2222
}[];
23-
alert_sent?: boolean;
24-
alert_level?: 'Red' | 'Orange' | 'Green' | 'Cones' | null;
2523
alertlevel?: string;
2624
alertscore?: number;
2725
country?: string;

src/components/domain/RiskImminentEvents/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ type BaseProps = {
3535
title: React.ReactNode;
3636
bbox: LngLatBoundsLike | undefined;
3737
defaultSource?: ImminentEventSource;
38-
alertType?:string;
3938
}
4039

4140
type Props = BaseProps & ({

src/views/AccountMyFormsPer/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export function Component() {
209209
className={styles.accountPerForms}
210210
heading={strings.processStatusTitle}
211211
withHeaderBorder
212+
actionsContainerClassName={styles.actionsContainer}
212213
actions={(
213214
<>
214215
<Link
@@ -218,7 +219,7 @@ export function Component() {
218219
{strings.newProcessButtonLabel}
219220
</Link>
220221
<WikiLink
221-
href="https://go-wiki.ifrc.org/en/user_guide/Preparedness#register-or-update-a-per-process"
222+
href="user_guide/Preparedness#register-or-update-a-per-process"
222223
/>
223224
</>
224225
)}

src/views/AccountMyFormsPer/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
88
}
99

10+
.actions-container {
11+
display: flex;
12+
align-items: center;
13+
}
1014
.sub-cell {
1115
border-bottom: unset;
1216
background-color: var(--go-ui-color-gray-20);

src/views/CountryPreparedness/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ export function Component() {
399399
className={styles.countryPreparedness}
400400
childrenContainerClassName={styles.preparednessContent}
401401
heading={strings.nsPreparednessAndResponseCapacityHeading}
402+
actionsContainerClassName={styles.actionsContainer}
402403
headingLevel={2}
403404
withHeaderBorder
404405
actions={(
@@ -410,7 +411,7 @@ export function Component() {
410411
strongValue
411412
/>
412413
<WikiLink
413-
href="https://go-wiki.ifrc.org/en/user_guide/Preparedness#how-to-use-it"
414+
href="user_guide/Preparedness#how-to-use-it"
414415
/>
415416
</>
416417
)}

src/views/CountryPreparedness/styles.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
padding: var(--go-ui-spacing-2xl) 0;
33
min-height: 40vh;
44

5+
.actions-container {
6+
display: flex;
7+
align-items: center;
8+
}
9+
510
.preparedness-content {
611
display: grid;
712
grid-gap: var(--go-ui-spacing-lg);

src/views/Emergencies/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function Component() {
101101
query: {
102102
model_type: 'event',
103103
unit: 'month',
104-
start_date: encodeDate(thirtyDaysAgo),
104+
start_date: encodeDate(oneYearAgo),
105105
} as never,
106106
});
107107

src/views/Preparedness/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function Component() {
2828
heading={strings.preparednessApproachSection}
2929
withHeaderBorder
3030
childrenContainerClassName={styles.approachContent}
31+
actionsContainerClassName={styles.actionsContainer}
3132
actions={(
3233
<>
3334
<Link
@@ -38,7 +39,7 @@ export function Component() {
3839
{strings.contactPerTeam}
3940
</Link>
4041
<WikiLink
41-
href="https://go-wiki.ifrc.org/en/user_guide/Preparedness"
42+
href="user_guide/Preparedness"
4243
/>
4344
</>
4445
)}

src/views/Preparedness/styles.module.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
flex-direction: column;
44
gap: var(--go-ui-spacing-2xl);
55

6+
.actions-container {
7+
display: flex;
8+
align-items: center;
9+
}
610
.approach-content {
711
display: grid;
812
grid-gap: var(--go-ui-spacing-md);
@@ -19,4 +23,3 @@
1923
}
2024
}
2125
}
22-

0 commit comments

Comments
 (0)