Skip to content

Commit

Permalink
chore(icon): Updated docs and examples to use ConfiguredIcons type
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Jan 31, 2022
1 parent 5b2494a commit bbfebed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Expand Up @@ -5,7 +5,7 @@ import {
ArrowUpwardSVGIcon,
CheckBoxSVGIcon,
CheckSVGIcon,
ConfigurableIcons,
ConfiguredIcons,
Configuration,
ErrorOutlineSVGIcon,
FileUploadSVGIcon,
Expand All @@ -22,7 +22,7 @@ import {

import navItems from "./navItems";

const icons: ConfigurableIcons = {
const icons: ConfiguredIcons = {
back: <KeyboardArrowLeftSVGIcon />,
checkbox: <CheckBoxSVGIcon />,
dropdown: <ArrowDropDownSVGIcon />,
Expand Down
4 changes: 2 additions & 2 deletions examples/nextjs-typescript/src/components/Layout/Layout.tsx
Expand Up @@ -5,7 +5,7 @@ import {
ArrowUpwardSVGIcon,
CheckBoxSVGIcon,
CheckSVGIcon,
ConfigurableIcons,
ConfiguredIcons,
Configuration,
ErrorOutlineSVGIcon,
FileUploadSVGIcon,
Expand All @@ -23,7 +23,7 @@ import {
import LinkUnstyled from "components/LinkUnstyled";
import navItems from "./navItems";

const icons: ConfigurableIcons = {
const icons: ConfiguredIcons = {
back: <KeyboardArrowLeftSVGIcon />,
checkbox: <CheckBoxSVGIcon />,
dropdown: <ArrowDropDownSVGIcon />,
Expand Down
6 changes: 3 additions & 3 deletions packages/documentation/src/migration-guides/v4-to-v5.md
Expand Up @@ -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: <KeyboardArrowLeftSVGIcon />,
checkbox: <CheckBoxSVGIcon />,
- download: <FileUploadSVGIcon />,
Expand Down Expand Up @@ -231,7 +231,7 @@ update the main `Configuration` component:
ArrowUpwardSVGIcon,
CheckBoxSVGIcon,
CheckSVGIcon,
ConfigurableIcons,
ConfiguredIcons,
Configuration,
ErrorOutlineSVGIcon,
FileUploadSVGIcon,
Expand All @@ -249,7 +249,7 @@ update the main `Configuration` component:

import navItems from "./navItems";

const icons: ConfigurableIcons = {
const icons: ConfiguredIcons = {
back: <KeyboardArrowLeftSVGIcon />,
checkbox: <CheckBoxSVGIcon />,
dropdown: <ArrowDropDownSVGIcon />,
Expand Down

0 comments on commit bbfebed

Please sign in to comment.