Allow setting modal properties when using SearchModal. Will be used in following diffs.
Details
Details
All modals should work as before. Can be tested after next diff in stack.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Looks really nice!
web/modals/modal.react.js | ||
---|---|---|
10–16 ↗ | (On Diff #11468) | I think we should split this type into two parts: with overridable and non-overridable props. The second category contains only children. Currently we replace it with +children: (searchText: string) => React.Node, but it would be cleaner to not include it in ModalProps - it will make this code more maintainable. |
18 ↗ | (On Diff #11468) | We usually try not to mix default and named exports. This component already had this issue, but we can easily fix that |
web/modals/modal.react.js | ||
---|---|---|
18 ↗ | (On Diff #11468) |
|