Skip to content

Commit

Permalink
Remove resources page summary
Browse files Browse the repository at this point in the history
  • Loading branch information
barshathakuri committed Dec 12, 2024
1 parent 3ec6212 commit aefcdd8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/views/Home/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"addSubscriptionDescription": "With real-time monitoring of potential risks and emergency events, receive timely and accurate alerts.",
"useApi": "Use API to rebroadcast CAP alerts",
"useApiDescription": "With simple yet powerful API endpoints, you can tailor the alerts to suit your users' needs.",
"alertNewSubscription": "Subscribe Alerts ",
"alertNewSubscription": "Subscribe to Alerts ",
"alertApiReference": "API Reference"
}
}
11 changes: 10 additions & 1 deletion src/views/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
CountryDetailQuery,
} from '#generated/types/graphql';
import useUrlSearchState from '#hooks/useUrlSearchState';
import useAuth from '#hooks/domain/useAuth';
import NewSubscriptionModal from '#views/NewSubscriptionModal';

import AlertDataContext, { AlertDataContextProps } from './AlertDataContext';
Expand Down Expand Up @@ -86,6 +87,7 @@ const filterKeys: CombinedAlertFilterKey[] = ['country', 'admin1', 'region', 'ur
// eslint-disable-next-line import/prefer-default-export
export function Component() {
const strings = useTranslation(i18n);
const { isAuthenticated } = useAuth();

const [
filters,
Expand Down Expand Up @@ -266,14 +268,21 @@ export function Component() {
heading={strings.addSubscription}
headerDescription={strings.addSubscriptionDescription}
withInternalPadding
footerContent={(
footerContent={isAuthenticated ? (
<Button
onClick={setShowSubscriptionModalTrue}
name={undefined}
variant="primary"
>
{strings.alertNewSubscription}
</Button>
) : (
<Link
variant="primary"
to="login"
>
{strings.alertNewSubscription}
</Link>
)}
/>
<Container
Expand Down
2 changes: 1 addition & 1 deletion src/views/RecoverAccount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export function Component() {
title={strings.successfulMessage}
/>
</Page>

);
}

Expand Down Expand Up @@ -183,6 +182,7 @@ export function Component() {
name="captcha"
onChange={setFieldValue}
onError={onCaptchaError}
error={fieldError?.captcha}
/>
<Button
name={undefined}
Expand Down
1 change: 1 addition & 0 deletions src/views/RecoverAccountConfirm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ export function Component() {
name="captcha"
onChange={setFieldValue}
onError={onCaptchaError}
error={fieldError?.captcha}
/>
<Button
name={undefined}
Expand Down
1 change: 1 addition & 0 deletions src/views/Register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export function Component() {
name="captcha"
onChange={setFieldValue}
onError={onCaptchaError}
error={error?.captcha}
/>
<Button
name={undefined}
Expand Down
3 changes: 1 addition & 2 deletions src/views/Resources/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function Component() {
{
id: 2,
title: strings.ifrcRelatedExternalLinksCapImplementation,
url: 'https://cap-workshop.alert-hub.org/2023/index.html',
url: 'https://cap-workshop.alert-hub.org/2024/index.html',
},
{
id: 3,
Expand All @@ -102,7 +102,6 @@ export function Component() {
mainSectionClassName={styles.resources}
title={strings.resourceAlerthubTitle}
heading={strings.resourceHeadingTitle}
description={strings.resourceHeadingDescription}
>
<Container
heading={strings.earlyWarningResourcesTitle}
Expand Down

0 comments on commit aefcdd8

Please sign in to comment.