From bbfebedc7902b5f28fca202ba7189b3c1b540f2d Mon Sep 17 00:00:00 2001 From: Mikkel Laursen Date: Sun, 30 Jan 2022 20:15:51 -0700 Subject: [PATCH] chore(icon): Updated docs and examples to use ConfiguredIcons type --- .../src/components/Layout/Layout.tsx | 4 ++-- examples/nextjs-typescript/src/components/Layout/Layout.tsx | 4 ++-- packages/documentation/src/migration-guides/v4-to-v5.md | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/create-react-app-typescript/src/components/Layout/Layout.tsx b/examples/create-react-app-typescript/src/components/Layout/Layout.tsx index fb15046c10..e4e6a52e74 100644 --- a/examples/create-react-app-typescript/src/components/Layout/Layout.tsx +++ b/examples/create-react-app-typescript/src/components/Layout/Layout.tsx @@ -5,7 +5,7 @@ import { ArrowUpwardSVGIcon, CheckBoxSVGIcon, CheckSVGIcon, - ConfigurableIcons, + ConfiguredIcons, Configuration, ErrorOutlineSVGIcon, FileUploadSVGIcon, @@ -22,7 +22,7 @@ import { import navItems from "./navItems"; -const icons: ConfigurableIcons = { +const icons: ConfiguredIcons = { back: , checkbox: , dropdown: , diff --git a/examples/nextjs-typescript/src/components/Layout/Layout.tsx b/examples/nextjs-typescript/src/components/Layout/Layout.tsx index eae863704b..2db5845618 100644 --- a/examples/nextjs-typescript/src/components/Layout/Layout.tsx +++ b/examples/nextjs-typescript/src/components/Layout/Layout.tsx @@ -5,7 +5,7 @@ import { ArrowUpwardSVGIcon, CheckBoxSVGIcon, CheckSVGIcon, - ConfigurableIcons, + ConfiguredIcons, Configuration, ErrorOutlineSVGIcon, FileUploadSVGIcon, @@ -23,7 +23,7 @@ import { import LinkUnstyled from "components/LinkUnstyled"; import navItems from "./navItems"; -const icons: ConfigurableIcons = { +const icons: ConfiguredIcons = { back: , checkbox: , dropdown: , diff --git a/packages/documentation/src/migration-guides/v4-to-v5.md b/packages/documentation/src/migration-guides/v4-to-v5.md index c6de21c034..0bb7669c20 100644 --- a/packages/documentation/src/migration-guides/v4-to-v5.md +++ b/packages/documentation/src/migration-guides/v4-to-v5.md @@ -6,7 +6,7 @@ If you provide custom icons for `react-md` using the `IconProvider` or `Configuration` components, you must rename the `download` icon to be `upload`. ```diff - const icons: ConfigurableIcons = { + const icons: ConfiguredIcons = { back: , checkbox: , - download: , @@ -231,7 +231,7 @@ update the main `Configuration` component: ArrowUpwardSVGIcon, CheckBoxSVGIcon, CheckSVGIcon, - ConfigurableIcons, + ConfiguredIcons, Configuration, ErrorOutlineSVGIcon, FileUploadSVGIcon, @@ -249,7 +249,7 @@ update the main `Configuration` component: import navItems from "./navItems"; - const icons: ConfigurableIcons = { + const icons: ConfiguredIcons = { back: , checkbox: , dropdown: ,