Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit db0deaf

Browse files
committed
fix: feather-icons on nuxt
1 parent 35be8f6 commit db0deaf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/chakra-ui-core/src/utils/icons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { merge } from 'lodash-es'
55
* @param {Object} iconSet - Registered Icons object
66
* @returns {Object}
77
*/
8-
const parseIcons = (iconSet) => {
8+
const parseIcons = (iconSet = {}) => {
99
const parseIcon = (iconObject) => {
1010
const { icon } = iconObject
1111
// Is library icon
@@ -43,7 +43,7 @@ const parseIcons = (iconSet) => {
4343
export const parsePackIcons = (iconSet) => {
4444
// TODO: Add support for other icon libraries
4545
// - Material Icons
46-
// - Tailwind Icons
46+
// - Tailwind Icons (Hero icons)
4747
const packIcons = parseIcons(iconSet)
4848
return packIcons
4949
}

packages/chakra-ui-nuxt/lib/module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module.exports = function (moduleOptions) {
1919

2020
// Resolve icons
2121
let packIcons = {}
22-
if (options.icons && options.icons.iconPack) {
23-
packIcons = parsePackIcons(options.icons.iconPack, options.icons.iconSet)
22+
if (options.icons) {
23+
packIcons = parsePackIcons(options.icons.iconSet)
2424
}
2525

2626
// Transpile lodash-es

0 commit comments

Comments
 (0)