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

fix: update svg packages, migrate metadata, lazy load svg components #970

Merged
merged 17 commits into from
Mar 5, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: sort dropdown
  • Loading branch information
vpicone committed Mar 4, 2020
commit 9227fb2d98bed7adabe47bcafc75528c0bacb155
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ const IconLibrary = () => {
}, []);

setCategoryList(
iconCategoryMetadata.flatMap(({ subcategories }) =>
subcategories.flatMap(({ name }) => name)
)
iconCategoryMetadata
.flatMap(({ subcategories }) =>
subcategories.flatMap(({ name }) => name)
)
.sort()
);

setCategoriesLoaded(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const IconLibrary = () => {
[]
);

setCategoryList(pictogramCatagoryMetadata.map(({ name }) => name));
setCategoryList(pictogramCatagoryMetadata.map(({ name }) => name)).sort();
setCategoriesLoaded(true);

setPictogramComponents(pictogramArray);
Expand Down