Skip to content

Commit 32ef4f9

Browse files
committed
Redo productIcons with component$
1 parent 78630b6 commit 32ef4f9

4 files changed

Lines changed: 37 additions & 29 deletions

File tree

web/platform/astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineConfig({
3838
},
3939
integrations: [
4040
qwik({
41-
include: ["**/components/qwik/**/*"],
41+
include: ["**/components/qwik/**/*", "**/components/media/icons/**"],
4242
}),
4343
react({
4444
include: ["**/components/react/*"],

web/platform/bun.lock

Lines changed: 25 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/platform/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"@deno/astro-adapter": "https://github.com/florian-lefebvre/denoland_deno-astro-adapter/tarball/feat/v6",
1717
"@lhci/cli": "^0.14.0",
1818
"@lorenzo_lewis/starlight-utils": "^0.3.2",
19-
"@qwikdev/astro": "^0.8.3",
19+
"@qwik.dev/astro": "^1",
20+
"@qwik.dev/core": "2.0.0-beta.29",
2021
"@qwikest/icons": "^0.0.13",
2122
"@react-three/drei": "^10.0.7",
2223
"@react-three/fiber": "^9.1.2",

web/platform/src/components/media/icons/productIcons.tsx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import type { PropsOf } from "@builder.io/qwik";
1+
import { component$, type PropsOf } from "@qwik.dev/core";
22

3-
export const CAS = (props: PropsOf<"svg">, key: string) => {
3+
export const CAS = component$<PropsOf<"svg">>((props) => {
44
return (
55
<svg
66
{...props}
7-
key={key}
87
preserveAspectRatio="xMidYMid meet"
98
data-bbox="0 0 48 48"
109
xmlns="http://www.w3.org/2000/svg"
@@ -49,13 +48,12 @@ export const CAS = (props: PropsOf<"svg">, key: string) => {
4948
</g>
5049
</svg>
5150
);
52-
};
51+
});
5352

54-
export const Security = (props: PropsOf<"svg">, key: string) => {
53+
export const Security = component$<PropsOf<"svg">>((props) => {
5554
return (
5655
<svg
5756
{...props}
58-
key={key}
5957
preserveAspectRatio="xMidYMid meet"
6058
data-bbox="0 0 48 48"
6159
xmlns="http://www.w3.org/2000/svg"
@@ -100,13 +98,12 @@ export const Security = (props: PropsOf<"svg">, key: string) => {
10098
</g>
10199
</svg>
102100
);
103-
};
101+
});
104102

105-
export const RBE = (props: PropsOf<"svg">, key: string) => {
103+
export const RBE = component$<PropsOf<"svg">>((props) => {
106104
return (
107105
<svg
108106
{...props}
109-
key={key}
110107
preserveAspectRatio="xMidYMid meet"
111108
data-bbox="0 0 48 48"
112109
xmlns="http://www.w3.org/2000/svg"
@@ -151,13 +148,12 @@ export const RBE = (props: PropsOf<"svg">, key: string) => {
151148
</g>
152149
</svg>
153150
);
154-
};
151+
});
155152

156-
export const FreeCloud = (props: PropsOf<"svg">, key: string) => {
153+
export const FreeCloud = component$<PropsOf<"svg">>((props) => {
157154
return (
158155
<svg
159156
{...props}
160-
key={key}
161157
preserveAspectRatio="xMidYMid meet"
162158
data-bbox="0 0 48 48"
163159
xmlns="http://www.w3.org/2000/svg"
@@ -202,4 +198,4 @@ export const FreeCloud = (props: PropsOf<"svg">, key: string) => {
202198
</g>
203199
</svg>
204200
);
205-
};
201+
});

0 commit comments

Comments
 (0)