Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(Image): add props interface #147

Merged
merged 1 commit into from
Aug 28, 2018
Merged

Conversation

kuzhelov
Copy link
Contributor

@kuzhelov kuzhelov commented Aug 28, 2018

This PR introduces props interface for the Image component, as part of #117

@kuzhelov kuzhelov changed the title feat: Image typings feat(Image): add props interface Aug 28, 2018
@codecov
Copy link

codecov bot commented Aug 28, 2018

Codecov Report

Merging #147 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #147   +/-   ##
=======================================
  Coverage   89.04%   89.04%           
=======================================
  Files          47       47           
  Lines         776      776           
  Branches      112      112           
=======================================
  Hits          691      691           
  Misses         83       83           
  Partials        2        2
Impacted Files Coverage Δ
src/components/Image/Image.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 103cafb...3aa2f2a. Read the comment docs.


export interface IImageProps {
accessibility?: Accessibility
as?: any
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I was adding the accessibility prop as object | Function, as I didn't know that there is prop for this. We may need to update this in the other components

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, will do

@kuzhelov kuzhelov merged commit 8339f6f into master Aug 28, 2018
@kuzhelov kuzhelov deleted the feat/add-typings-for-image branch August 28, 2018 13:07
@levithomason levithomason mentioned this pull request Aug 28, 2018
19 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants