From fc14418e7a19d49d0458646ebc4f8e0331e1e9dd Mon Sep 17 00:00:00 2001 From: Jose Manuel Heredia Hidalgo Date: Fri, 12 Jul 2019 14:30:01 -0700 Subject: [PATCH 1/3] Add image-unavailable icon to Teams Theme --- .../components/Icon/svg/icons/image-unavailable.tsx | 13 +++++++++++++ .../themes/teams/components/Icon/svg/icons/index.ts | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 packages/react/src/themes/teams/components/Icon/svg/icons/image-unavailable.tsx diff --git a/packages/react/src/themes/teams/components/Icon/svg/icons/image-unavailable.tsx b/packages/react/src/themes/teams/components/Icon/svg/icons/image-unavailable.tsx new file mode 100644 index 0000000000..777ac73f63 --- /dev/null +++ b/packages/react/src/themes/teams/components/Icon/svg/icons/image-unavailable.tsx @@ -0,0 +1,13 @@ +import * as React from 'react' +import { TeamsSvgIconSpec } from '../types' + +export default { + icon: ({ classes }) => ( + + + + + + ), + styles: {}, +} as TeamsSvgIconSpec diff --git a/packages/react/src/themes/teams/components/Icon/svg/icons/index.ts b/packages/react/src/themes/teams/components/Icon/svg/icons/index.ts index 2332375caf..20e6d23b32 100644 --- a/packages/react/src/themes/teams/components/Icon/svg/icons/index.ts +++ b/packages/react/src/themes/teams/components/Icon/svg/icons/index.ts @@ -73,6 +73,7 @@ import giphy from './giphy' import hand from './hand' import highlight from './highlight' import horizontalRule from './horizontalRule' +import imageUnavailabe from './image-unavailable' import indent from './indent' import info from './info' import italic from './italic' @@ -208,6 +209,7 @@ export default { giphy, highlight, 'horizontal-rule': horizontalRule, + 'image-unavailable': imageUnavailabe, indent, info, italic, From 5e6fb0e86450126b5e362da60cc2ed5d0e71dd80 Mon Sep 17 00:00:00 2001 From: Jose Manuel Heredia Hidalgo Date: Fri, 12 Jul 2019 14:33:58 -0700 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01710e9c71..2d9e32ee40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Split action handlers with "OR" condition in accessibility behaviors @sophieH29 ([#1622](https://github.com/stardust-ui/react/pull/1622)) - Add `headerAction` slot to the `Dialog` component @mnajdova ([#1617](https://github.com/stardust-ui/react/pull/1617)) - Add `Slider` component @Bugaa92 ([#1559](https://github.com/stardust-ui/react/pull/1559)) +- Add `image-unavailable` icon to Teams Theme @joheredi ([#1633](https://github.com/stardust-ui/react/pull/1633)) ## [v0.34.1](https://github.com/stardust-ui/react/tree/v0.34.1) (2019-07-11) From 68b1350c99e157b1012e395806a7d1675b4a947c Mon Sep 17 00:00:00 2001 From: Jose Manuel Heredia Hidalgo Date: Thu, 18 Jul 2019 10:32:34 -0700 Subject: [PATCH 3/3] Fix typo and remove unused g tag --- .../teams/components/Icon/svg/icons/image-unavailable.tsx | 4 +--- .../react/src/themes/teams/components/Icon/svg/icons/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/react/src/themes/teams/components/Icon/svg/icons/image-unavailable.tsx b/packages/react/src/themes/teams/components/Icon/svg/icons/image-unavailable.tsx index 777ac73f63..8b2f9acb94 100644 --- a/packages/react/src/themes/teams/components/Icon/svg/icons/image-unavailable.tsx +++ b/packages/react/src/themes/teams/components/Icon/svg/icons/image-unavailable.tsx @@ -4,9 +4,7 @@ import { TeamsSvgIconSpec } from '../types' export default { icon: ({ classes }) => ( - - - + ), styles: {}, diff --git a/packages/react/src/themes/teams/components/Icon/svg/icons/index.ts b/packages/react/src/themes/teams/components/Icon/svg/icons/index.ts index 20e6d23b32..d8bd7abe9c 100644 --- a/packages/react/src/themes/teams/components/Icon/svg/icons/index.ts +++ b/packages/react/src/themes/teams/components/Icon/svg/icons/index.ts @@ -73,7 +73,7 @@ import giphy from './giphy' import hand from './hand' import highlight from './highlight' import horizontalRule from './horizontalRule' -import imageUnavailabe from './image-unavailable' +import imageUnavailable from './image-unavailable' import indent from './indent' import info from './info' import italic from './italic' @@ -209,7 +209,7 @@ export default { giphy, highlight, 'horizontal-rule': horizontalRule, - 'image-unavailable': imageUnavailabe, + 'image-unavailable': imageUnavailable, indent, info, italic,