Page MenuHomePhabricator

[lib,landing,web] [chore] [ENG-1019] move onClick type to lib
AbandonedPublic

Authored by benschac on Apr 18 2022, 10:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 19 2024, 6:13 PM
Unknown Object (File)
Nov 19 2024, 6:11 PM
Unknown Object (File)
Nov 19 2024, 6:11 PM
Unknown Object (File)
Oct 17 2024, 8:11 PM
Unknown Object (File)
Oct 17 2024, 8:11 PM
Unknown Object (File)
Oct 17 2024, 8:11 PM
Unknown Object (File)
Sep 6 2024, 12:56 PM
Unknown Object (File)
Sep 6 2024, 12:56 PM

Details

Reviewers
atul
ashoat
Summary

chore, move onClick button type to lib and export

https://linear.app/comm/issue/ENG-1019/update-button-types

Test Plan

N/A flow shouldn't break

Diff Detail

Repository
rCOMM Comm
Branch
benjamin/eng-1019-update-button-types
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

lib/types/core.js
5

Not sure if we should name this something like, ButtonClick

ashoat requested changes to this revision.Apr 18 2022, 9:18 PM

Not clear to me that this is helping at all. The extra indirection here isn't worth the DRY, in my opinion. I would favor abandoning this

lib/types/core.js
5

This is clearly a bad name, it's way too generic... OnClick in lib/types/core.js would appear to be a "core" type that covers every single on-click callback

This revision now requires changes to proceed.Apr 18 2022, 9:18 PM

Fair enough. I thought it would be helpful since we're using the same onClick handler. Not married to it. Happy to abandon.