feat(SW-214): fixing pr comments
This commit is contained in:
@@ -25,7 +25,7 @@ export default function UspGrid({ usp_grid }: UspGridProps) {
|
|||||||
<JsonToHtml
|
<JsonToHtml
|
||||||
embeds={usp.text.embedded_itemsConnection?.edges}
|
embeds={usp.text.embedded_itemsConnection?.edges}
|
||||||
nodes={usp.text.json.children}
|
nodes={usp.text.json.children}
|
||||||
renderOptions={{ ...renderOptions }}
|
renderOptions={renderOptions}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -78,9 +78,7 @@ export const uspGridRefsSchema = z.object({
|
|||||||
embedded_itemsConnection: z.object({
|
embedded_itemsConnection: z.object({
|
||||||
edges: z.array(
|
edges: z.array(
|
||||||
z.object({
|
z.object({
|
||||||
node: z.discriminatedUnion("__typename", [
|
node: actualRefs,
|
||||||
...actualRefs.options,
|
|
||||||
]),
|
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
|
|
||||||
|
import { IconName } from "../components/icon"
|
||||||
|
|
||||||
export namespace UspGridEnum {
|
export namespace UspGridEnum {
|
||||||
export const uspIcons = z.enum(["Snowflake"])
|
export const enum icons {
|
||||||
|
Snowflake = IconName.Snowflake,
|
||||||
|
}
|
||||||
|
export const uspIcons = z.enum([icons.Snowflake])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user