Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

CircularProgress Component - Introduced ForwardRef #177

Merged

Conversation

priscilawebdev
Copy link
Contributor

Type: Refactor

The following has been addressed in the PR: #162

Unit or Functional tests are included in the PR? Not yet

Description:

Wrapped Material UI CirularProgress Component with ForwardRef

@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #177 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #177      +/-   ##
==========================================
+ Coverage   88.15%   88.18%   +0.02%     
==========================================
  Files         107      108       +1     
  Lines         912      914       +2     
  Branches      163      147      -16     
==========================================
+ Hits          804      806       +2     
- Misses         94       95       +1     
+ Partials       14       13       -1
Impacted Files Coverage Δ
src/components/Spinner/styles.ts 100% <ø> (ø) ⬆️
...uiComponents/CircularProgress/CircularProgress.tsx 100% <100%> (ø)
src/components/DetailSidebar/DetailSidebar.tsx 85% <0%> (ø) ⬆️

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 d0d4139...290d503. Read the comment docs.

import React, { forwardRef } from 'react';
import { default as MaterialUICircularProgress, CircularProgressProps } from '@material-ui/core/CircularProgress';

type CircularProgressRef = HTMLElementTagNameMap['div'];
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just use HTMLDivElement directly?

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, good idea :-) Thanks!

tmkn
tmkn previously approved these changes Oct 11, 2019
@juanpicado juanpicado merged commit af8ed8b into master Oct 12, 2019
@delete-merged-branch delete-merged-branch bot deleted the refactor/162_introduced_forward_ref_circular_progress branch October 12, 2019 07:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants