Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic import icons #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WeiYun0912
Copy link

Hi 剛剛有看到你的需求了

你看一下是不是你要的功能

在navigation.js裡面一樣去import你要的icon,之後直接把icon丟進去json物件裡面就好。

然後在Sidebar.jsx檔案,去判斷你要渲染的物件有沒有這個key,有的話就直接把icon渲染出來。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant