diff --git a/TODO.md b/TODO.md index c404e2f..6b51a7c 100644 --- a/TODO.md +++ b/TODO.md @@ -2,6 +2,7 @@ - [ ] Fix: Initial load `pointString` validation (make sure all talents are valid and their deps are met) - [ ] Fix: Navigating between talent links for same class does not trigger re-render +- [ ] Fix: Icon image fallback if not locally known - [ ] Styling: - [ ] SCSS: Normalize diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index ca2a158..6f76eee 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -60,6 +60,7 @@ export const Icon = React.forwardRef((props, ref) => { ) }) +// TODO: Fallback is broken due to no longer using require() const iconUrl = (name: string, size: string): string => { try { return `${process.env.PUBLIC_URL}/images/icons/${size}/${name}.jpg`