Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader migrated to TS #1002 #1056

Merged
merged 3 commits into from
Sep 27, 2021
Merged

Conversation

Gauravsharma-20
Copy link
Contributor

packages/ui/lib/components/Loader migrated to Typescript.

Loader.propTypes = {
type: PropTypes.string
};

Loader.defaultProps = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's better to put default prop like this

const Loader: React.FC<LoaderProps> = ({  
     type='default'
}) => {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I was initially going to go with this. Will change.

@codecov
Copy link

codecov bot commented Sep 27, 2021

Codecov Report

Merging #1056 (58365c3) into master (ee6b1f8) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1056      +/-   ##
==========================================
- Coverage   61.43%   61.42%   -0.02%     
==========================================
  Files         280      280              
  Lines        5002     5000       -2     
  Branches      318      318              
==========================================
- Hits         3073     3071       -2     
  Misses       1662     1662              
  Partials      267      267              
Impacted Files Coverage Δ
packages/ui/lib/components/Loader/index.tsx 50.00% <100.00%> (ø)

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 ee6b1f8...58365c3. Read the comment docs.

@nukeop
Copy link
Owner

nukeop commented Sep 27, 2021

Thanks for contributing.

@nukeop nukeop merged commit 0f0d417 into nukeop:master Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants