diff --git a/components/icon.js b/components/icon.js index 15b6bd5..50aed63 100644 --- a/components/icon.js +++ b/components/icon.js @@ -1,6 +1,7 @@ -import { icons } from 'feather-icons' +import feather from 'feather-icons' export default function Icon(name, fallback) { - const ico = icons[name.toLowerCase()] || icons[fallback.toLowerCase()] - return ico.toSvg({ width: 16, height: 16 }) + const icon = + feather.icons[name.toLowerCase()] || feather.icons[fallback.toLowerCase()] + return icon.toSvg({ width: 16, height: 16 }) }