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

refactor: convert text ellipsis to functional component #1224

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

chaofan232
Copy link
Contributor

@chaofan232 chaofan232 commented Oct 4, 2021

Description

Convert TextEllipsis component into functional component

Does this PR introduce a breaking change?

  • Yes
  • No

Manual testing step?

Screenshots (if appropriate):

@chaofan232 chaofan232 requested a review from xiaofan2406 October 4, 2021 10:21
@codecov
Copy link

codecov bot commented Oct 4, 2021

Codecov Report

Merging #1224 (7d6e07c) into master (6dffcbe) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1224   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           93        93           
  Lines         1385      1377    -8     
  Branches       344       344           
=========================================
- Hits          1385      1377    -8     
Impacted Files Coverage Δ
src/components/TextEllipsis/index.jsx 100.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 6dffcbe...7d6e07c. Read the comment docs.

@chaofan232 chaofan232 linked an issue Oct 4, 2021 that may be closed by this pull request
4 tasks
vinteo
vinteo previously approved these changes Oct 21, 2021
trigger: 'hover',
},
};
React.useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

a general rule of thumb
useLayoutEffect when it uses dom ref
useEffect for all other side effects

@xiaofan2406 xiaofan2406 merged commit 616b6fc into master Oct 22, 2021
@xiaofan2406 xiaofan2406 deleted the convert-textellipsis branch October 22, 2021 00:10
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.

convert TextEllipsis to function component
3 participants