Skip to content

Commit bbfebed

Browse files
committed
chore(icon): Updated docs and examples to use ConfiguredIcons type
1 parent 5b2494a commit bbfebed

File tree

3 files changed

+7
-7
lines changed
  • examples
    • create-react-app-typescript/src/components/Layout
    • nextjs-typescript/src/components/Layout
  • packages/documentation/src/migration-guides

3 files changed

+7
-7
lines changed

examples/create-react-app-typescript/src/components/Layout/Layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
ArrowUpwardSVGIcon,
66
CheckBoxSVGIcon,
77
CheckSVGIcon,
8-
ConfigurableIcons,
8+
ConfiguredIcons,
99
Configuration,
1010
ErrorOutlineSVGIcon,
1111
FileUploadSVGIcon,
@@ -22,7 +22,7 @@ import {
2222

2323
import navItems from "./navItems";
2424

25-
const icons: ConfigurableIcons = {
25+
const icons: ConfiguredIcons = {
2626
back: <KeyboardArrowLeftSVGIcon />,
2727
checkbox: <CheckBoxSVGIcon />,
2828
dropdown: <ArrowDropDownSVGIcon />,

examples/nextjs-typescript/src/components/Layout/Layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
ArrowUpwardSVGIcon,
66
CheckBoxSVGIcon,
77
CheckSVGIcon,
8-
ConfigurableIcons,
8+
ConfiguredIcons,
99
Configuration,
1010
ErrorOutlineSVGIcon,
1111
FileUploadSVGIcon,
@@ -23,7 +23,7 @@ import {
2323
import LinkUnstyled from "components/LinkUnstyled";
2424
import navItems from "./navItems";
2525

26-
const icons: ConfigurableIcons = {
26+
const icons: ConfiguredIcons = {
2727
back: <KeyboardArrowLeftSVGIcon />,
2828
checkbox: <CheckBoxSVGIcon />,
2929
dropdown: <ArrowDropDownSVGIcon />,

packages/documentation/src/migration-guides/v4-to-v5.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ If you provide custom icons for `react-md` using the `IconProvider` or
66
`Configuration` components, you must rename the `download` icon to be `upload`.
77

88
```diff
9-
const icons: ConfigurableIcons = {
9+
const icons: ConfiguredIcons = {
1010
back: <KeyboardArrowLeftSVGIcon />,
1111
checkbox: <CheckBoxSVGIcon />,
1212
- download: <FileUploadSVGIcon />,
@@ -231,7 +231,7 @@ update the main `Configuration` component:
231231
ArrowUpwardSVGIcon,
232232
CheckBoxSVGIcon,
233233
CheckSVGIcon,
234-
ConfigurableIcons,
234+
ConfiguredIcons,
235235
Configuration,
236236
ErrorOutlineSVGIcon,
237237
FileUploadSVGIcon,
@@ -249,7 +249,7 @@ update the main `Configuration` component:
249249

250250
import navItems from "./navItems";
251251

252-
const icons: ConfigurableIcons = {
252+
const icons: ConfiguredIcons = {
253253
back: <KeyboardArrowLeftSVGIcon />,
254254
checkbox: <CheckBoxSVGIcon />,
255255
dropdown: <ArrowDropDownSVGIcon />,

0 commit comments

Comments
 (0)