Skip to content

Commit

Permalink
Add "use client" for icons
Browse files Browse the repository at this point in the history
  • Loading branch information
chevsky committed Jul 13, 2024
1 parent 9dda654 commit 4b0d097
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-icons/convert-font.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ async function processFolder(srcPath, codepointMapDestFolder, resizable) {

for (const chunk of iconChunks) {
chunk.unshift(`import {createFluentFontIcon} from "../../utils/fonts/createFluentFontIcon";`)
chunk.unshift(`"use client";`);
}

/** @type string[] */
Expand Down
1 change: 1 addition & 0 deletions packages/react-icons/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function processFolder(srcPath, destPath, resizable) {
for(const chunk of iconChunks) {
chunk.unshift(`import { createFluentIcon } from "../utils/createFluentIcon";`);
chunk.unshift(`import type { FluentIcon } from "../utils/createFluentIcon";`);
chunk.unshift(`"use client";`);
}

/** @type string[] */
Expand Down

0 comments on commit 4b0d097

Please sign in to comment.