Skip to content

Commit b903d8a

Browse files
authored
Merge pull request #2266 from dxc-technology/jialecl-next-fix
Emotion and next.js compatibility
2 parents 06033b0 + 85a3eed commit b903d8a

File tree

7 files changed

+1489
-953
lines changed

7 files changed

+1489
-953
lines changed

apps/website/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

apps/website/next.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ module.exports = {
1313
return config;
1414
},
1515
reactStrictMode: true,
16+
compiler: {
17+
emotion: true,
18+
},
1619
assetPrefix:
1720
process.env.NODE_ENV === "production"
1821
? `/halstack/${process.env.NEXT_PUBLIC_SITE_VERSION?.split(".")[0]}`
@@ -25,6 +28,6 @@ module.exports = {
2528
"@cloudscape-design/components",
2629
"@cloudscape-design/component-toolkit",
2730
"@cloudscape-design/theming-runtime",
28-
"react-data-grid",
31+
"@dxc-technology/halstack-react",
2932
],
3033
};

apps/website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@emotion/styled": "^11.14.0",
1717
"@radix-ui/react-popover": "^1.0.7",
1818
"cross-env": "^7.0.3",
19-
"next": "^14.2.30",
19+
"next": "^15.4.5",
2020
"raw-loader": "^4.0.2",
2121
"react": "^18",
2222
"react-color": "^2.19.3",

apps/website/screens/components/data-grid/DataGridPageLayout.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ const DataGridPageHeading = ({ children }: { children: ReactNode }) => {
1515
<PageHeading>
1616
<DxcFlex direction="column" gap="var(--spacing-gap-xl)">
1717
<ComponentHeading name="Data Grid" />
18-
<DxcAlert
19-
title="Issues"
20-
semantic="warning"
21-
message={{ text: "There are known styling issues with sortable columns when used in a NextJS app." }}
22-
closable={false}
23-
/>
2418
<DxcParagraph>
2519
The datagrid component is used to display and manage large sets of data in a tabular format, allowing users
2620
to sort, filter, and interact with the data efficiently.

0 commit comments

Comments
 (0)