Closed azzlack closed 1 year ago
I solved it temporarily by creating my own preview method
export const preview = ({
provider,
name,
}: Pick<IconObject, 'provider' | 'name'>): ReactElement | null => {
if (!provider) return null;
// NOTE: References my own custom ProviderConfiguration objects instead of the static configurations file
const configurations = [provider1, provider2];
const icons = configurations.find(
(config) => config.provider === provider
)?.icons();
const found = icons?.find((icon) => icon.tags.some((tag) => tag === name));
return found?.component() || null;
};
I can try to make a PR for this, but I am in the middle a few very busy weeks. So it will take some time unless someone else fix it first :-)
Thanks for reporting this. I'll push a fix during this week
The
preview
function uses the staticsrc/configurations/index.ts
array. It should load any custom providers as well