-
Notifications
You must be signed in to change notification settings - Fork 665
Convert VerticalResizer.tsx from class component to functional component
#2951
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
Convert VerticalResizer.tsx from class component to functional component
#2951
Conversation
Signed-off-by: Parship Chowdhury <i.am.parship@gmail.com>
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2951 +/- ##
==========================================
+ Coverage 97.76% 98.13% +0.37%
==========================================
Files 256 257 +1
Lines 7969 8006 +37
Branches 2008 2091 +83
==========================================
+ Hits 7791 7857 +66
+ Misses 178 149 -29 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Parship Chowdhury <i.am.parship@gmail.com>
Signed-off-by: Parship Chowdhury <i.am.parship@gmail.com>
Signed-off-by: Parship Chowdhury <i.am.parship@gmail.com>
|
@vishvamsinh28 can you please review this PR? |
| } | ||
| const getDraggingBounds = useCallback((): DraggableBounds => { | ||
| if (!rootElmRef.current) { | ||
| throw new Error('Invalid state: root element not found'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a good idea to be throwing exceptions from a component? Couldn't it just return from the callback?
Signed-off-by: Parship Chowdhury <i.am.parship@gmail.com>
Which problem is this PR solving?
Description of the changes
VerticalResizer.tsxChecklist
jaeger:make lint testjaeger-ui:npm run lintandnpm run test