Skip to content

Commit

Permalink
fix(packages/sui-react-head): fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
kikoruiz committed Feb 13, 2024
1 parent abb824b commit 2e05a91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/sui-react-head/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {type ReactElement} from 'react'
import {renderToString} from 'react-dom/server'

import {BODY_ATTRIBUTES_KEY} from './Body'
Expand Down Expand Up @@ -36,7 +35,7 @@ const transformToString = (headObject: Record<string, string> = {}): string =>
/**
* Render the tags for the head
*/
export function renderHeadTagsToString(headTags: Array<ReactElement<unknown>>): {
export function renderHeadTagsToString(headTags: ComponentTag[]): {
headString: string
bodyAttributes: string
htmlAttributes: string
Expand Down

0 comments on commit 2e05a91

Please sign in to comment.