Page MenuHomePhabricator

[native] Move margin getter in Tooltip to functional component
ClosedPublic

Authored by angelika on Wed, Dec 11, 7:34 AM.
Tags
None
Referenced Files
F3492389: D14104.diff
Wed, Dec 18, 11:38 PM
Unknown Object (File)
Tue, Dec 17, 3:26 PM
Unknown Object (File)
Fri, Dec 13, 11:17 PM
Subscribers
None

Details

Summary

Simply move get margin function to functional component as a part of Tooltip migration to functional component.

Depends on: D14103

Test Plan

Open some tooltips and verify they're positioned correctly.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

angelika held this revision as a draft.
ashoat added inline comments.
native/tooltip/tooltip.react.js
559–564

I would make this a memo and replace the getter with the value itself. (Feel free to address this later in the stack)

This revision is now accepted and ready to land.Wed, Dec 11, 5:43 PM

Rebase and address feedback