Skip to content

Commit

Permalink
Add "use client" for icons (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
chevsky authored Jul 14, 2024
1 parent 9dda654 commit 80fb6c0
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 80fb6c0

Please sign in to comment.