Skip to content

Commit f04d458

Browse files
reidbarbersnowystingerLFDanLu
authored
Update Next.js example app (#4482)
* update Next.js example * add avatar * update node version in CI * bring back to 16.14 * revert node version update --------- Co-authored-by: Robert Snow <[email protected]> Co-authored-by: Daniel Lu <[email protected]>
1 parent 391efae commit f04d458

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

examples/rsp-next-ts/next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export default {
22
transpilePackages: [
33
"@adobe/react-spectrum",
44
"@react-spectrum/actiongroup",
5+
"@react-spectrum/avatar",
56
"@react-spectrum/badge",
67
"@react-spectrum/breadcrumbs",
78
"@react-spectrum/button",

examples/rsp-next-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"type": "module",
1414
"dependencies": {
15-
"@adobe/react-spectrum": "^3.22.0",
15+
"@adobe/react-spectrum": "^3.26.0",
1616
"@react-spectrum/color": "^3.0.0-beta.16",
1717
"@react-spectrum/tag": "3.0.0-rc.0",
1818
"@react-spectrum/toast": "^3.0.0-alpha.0",

examples/rsp-next-ts/pages/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ import {
6969
View,
7070
Well,
7171
DialogContainer,
72+
Avatar,
7273
} from "@adobe/react-spectrum";
7374
import Edit from "@spectrum-icons/workflow/Edit";
7475
import NotFound from "@spectrum-icons/illustrations/NotFound";
@@ -392,6 +393,8 @@ export default function Home() {
392393
</Section>
393394

394395
<Section title="Content">
396+
<Avatar src="https://i.imgur.com/kJOwAdv.png" alt="default Adobe avatar" />
397+
395398
<Content>Content is king</Content>
396399

397400
<Flex direction="column" gap="size-125">

0 commit comments

Comments
 (0)