Skip to content

Commit

Permalink
Centerer types [nfc]: Annotate for types-first.
Browse files Browse the repository at this point in the history
We're not totally satisfied with how we annotate `defaultProps` (see
f801c97), but it works, and we'd like to remove `Centerer` anyway;
issue zulip#4868 is in progress toward that.

Related: zulip#4907
  • Loading branch information
chrisbobbe committed Aug 27, 2021
1 parent 88b0a71 commit c6bb978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/Centerer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ type Props = $ReadOnly<{|
* @prop [padding] - Specifies if the components should be padded.
*/
export default class Centerer extends PureComponent<Props> {
static defaultProps = {
static defaultProps: {| padding: boolean |} = {
padding: false,
};

render() {
render(): Node {
const { children, padding, style } = this.props;

return (
Expand Down

0 comments on commit c6bb978

Please sign in to comment.