HomePhabricator
Diffusion Comm 332d5a0d01a7

[web] Modify Button so that onClick function can return any type

Description

[web] Modify Button so that onClick function can return any type

Summary: Our current button version doesn't work with async functions - which return promises. Instead of using void we should use mixed because we don't care about the returned value.

Test Plan: Flow

Reviewers: def-au1t, atul, benschac

Reviewed By: atul

Subscribers: ashoat, Adrian, yayabosh

Differential Revision: https://phab.comm.dev/D4265

Details

Provenance
tomekAuthored on Jun 13 2022, 5:44 AM
Reviewer
atul
Differential Revision
D4265: [web] Modify Button so that onClick function can return any type
Parents
rCOMMec96ce6673eb: [web] Modify Label component so that the content can be broken in any place
Branches
Unknown
Tags
Unknown