Skip to content

Commit e21c80f

Browse files
author
Vieltojarvi
committed
chore: lex deprecation notice
1 parent 815590c commit e21c80f

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,5 @@
120120
"lint": "next lint",
121121
"clean-references": "node tasks/clean-references.mjs"
122122
},
123-
"packageManager": "[email protected].0"
123+
"packageManager": "[email protected].2"
124124
}

src/components/Layout/Layout.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import {
3838
import { Modal } from '@/components/Modal';
3939
import { Gen1Banner } from '@/components/Gen1Banner';
4040
import { PinpointEOLBanner } from '@/components/PinpointEOLBanner';
41+
import { LexV1EOLBanner } from '../LexV1EOLBanner';
4142
import { ApiModalProvider } from '../ApiDocs/ApiModalProvider';
4243

4344
export const Layout = ({
@@ -282,9 +283,13 @@ export const Layout = ({
282283
{(isGen1GettingStarted || isGen1HowAmplifyWorks) && (
283284
<Gen1Banner currentPlatform={currentPlatform} />
284285
)}
285-
{(asPathWithNoHash.includes('/push-notifications/') ||
286-
asPathWithNoHash.includes('/analytics/')) && (
287-
<PinpointEOLBanner />
286+
{asPathWithNoHash.includes('/push-notifications/') ||
287+
asPathWithNoHash.includes('/analytics/') ||
288+
(asPathWithNoHash.includes('/in-app-messaging/') && (
289+
<PinpointEOLBanner />
290+
))}
291+
{asPathWithNoHash.includes('/interactions/') && (
292+
<LexV1EOLBanner />
288293
)}
289294
{children}
290295
{showNextPrev && <NextPrevious />}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { Callout } from '@/components/Callout';
2+
import Link from 'next/link';
3+
import classNames from 'classnames';
4+
5+
export const LexV1EOLBanner = () => {
6+
return (
7+
<Callout backgroundColor="background.error">
8+
<Link
9+
href="https://docs.aws.amazon.com/lex/latest/dg/migrate.html"
10+
passHref
11+
className={classNames('amplify-link')}
12+
>
13+
AWS will end support for Amazon Lex V1 on September 15, 2025,
14+
</Link>
15+
, and is no longer accepting any new users as of March 31. The guidance is
16+
to migrate to{' '}
17+
<Link
18+
href="https://docs.aws.amazon.com/lexv2/latest/dg/getting-started.html"
19+
passHref
20+
className={classNames('amplify-link')}
21+
>
22+
Amazon Lex V2.
23+
</Link>{' '}
24+
</Callout>
25+
);
26+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { LexV1EOLBanner } from './LexV1EOLBanner';

0 commit comments

Comments
 (0)