Page MenuHomePhabricator

[web] Turn `Splash` into a functional component
ClosedPublic

Authored by atul on Mar 16 2022, 3:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 4:31 PM
Unknown Object (File)
Sun, Nov 10, 12:13 AM
Unknown Object (File)
Sun, Nov 10, 12:13 AM
Unknown Object (File)
Sun, Nov 10, 12:13 AM
Unknown Object (File)
Sun, Nov 10, 12:13 AM
Unknown Object (File)
Sun, Nov 10, 12:13 AM
Unknown Object (File)
Sun, Nov 10, 12:07 AM
Unknown Object (File)
Fri, Nov 8, 7:35 AM

Details

Summary

This should be a noop.

(This component will be renamed from ConnectedSplash to Splash in the next diff).


depends on D3450

Test Plan

Careful reading, flow, and making sure we can still log into the web app, etc.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Mar 16 2022, 3:42 PM
benschac added inline comments.
web/splash/splash.react.js
12 ↗(On Diff #10468)

nit: Could we make this: SyntheticEvent<HTMLElement> so we don't have to update the type too if the element changes.

16 ↗(On Diff #10468)

Does the whole modal context need to be in the dep array?

32 ↗(On Diff #10468)

RIP it was fun while it lasted.

This revision is now accepted and ready to land.Mar 16 2022, 5:24 PM
This revision now requires review to proceed.Mar 16 2022, 9:47 PM
atul changed 2 blocking reviewer(s), added 1: ashoat; removed 1: tomek.Mar 17 2022, 8:13 AM

Agree with Ben's comments

This revision is now accepted and ready to land.Mar 17 2022, 10:59 AM

rebase before addressing feedback and landing

web/splash/splash.react.js
12 ↗(On Diff #10468)

Ok sure, flow seemed to be happy with that. I didn't change it initially to keep it as minimal a refactor as possible, but doesn't hurt.

16 ↗(On Diff #10468)

ESLint wanted modalContext in the dep list and wasn't happy with modalContext.setModal

32 ↗(On Diff #10468)

rip

This revision was landed with ongoing or failed builds.Mar 17 2022, 11:37 AM
This revision was automatically updated to reflect the committed changes.