Page MenuHomePhabricator

[native] Refactor markdown-link component
ClosedPublic

Authored by patryk on Aug 17 2023, 1:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 2:10 PM
Unknown Object (File)
Fri, Dec 6, 2:09 PM
Unknown Object (File)
Fri, Dec 6, 1:51 PM
Unknown Object (File)
Fri, Dec 6, 8:03 AM
Unknown Object (File)
Nov 23 2024, 9:59 AM
Unknown Object (File)
Oct 27 2024, 2:33 PM
Unknown Object (File)
Oct 2 2024, 8:38 AM
Unknown Object (File)
Sep 27 2024, 8:53 PM
Subscribers

Details

Summary

This diff extracts markdown-link.react.js code to markdown-utils.js. This code is going to be reused in markdown-chat-mention component.

Depends on D8834.

Test Plan

Tested later in the stack.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

patryk held this revision as a draft.

Change shouldBePressable logic

patryk edited the test plan for this revision. (Show Details)
patryk added reviewers: tomek, inka, rohan.

We have an agreement in our team that if we are moving some code, we should first move it and change it in next diff, becuse moving and changing in one diff makes it hard to review. You can see in this diff that it looks on phabricator as if you removed useHandleLinkClick function, and you didn't do that

native/markdown/markdown-utils.js
20 ↗(On Diff #30008)

I'm assuming this argument will be used somewhere

60 ↗(On Diff #30008)

I think this should be () => void

This revision is now accepted and ready to land.Aug 22 2023, 7:08 AM

Remove blockOnPress variable from useMarkdownOnPressUtils

Rename shouldBePressable to isRevealed