UriIndicator: props cleanup, no functional change
- Marked optional props properly. - Re-ordered to make it easier to differentiate "props used in jsx" vs. "from redux". Separated the commit to make the upcoming diffs easier to read.
This commit is contained in:
parent
c2c44f7334
commit
a636d7d8c9
1 changed files with 10 additions and 15 deletions
|
@ -4,27 +4,22 @@ import React from 'react';
|
|||
import classnames from 'classnames';
|
||||
import Button from 'component/button';
|
||||
|
||||
type ChannelInfo = {
|
||||
uri: string,
|
||||
name: string,
|
||||
};
|
||||
type ChannelInfo = { uri: string, name: string };
|
||||
|
||||
type Props = {
|
||||
isResolvingUri: boolean,
|
||||
link: ?boolean,
|
||||
claim: ?Claim,
|
||||
hideAnonymous: boolean,
|
||||
// Lint thinks we aren't using these, even though we are.
|
||||
// Possibly because the resolve function is an arrow function that is passed in props?
|
||||
resolveUri: (string) => void,
|
||||
uri: string,
|
||||
channelInfo: ?ChannelInfo, // Direct channel info to use, bypassing the need to resolve 'uri'.
|
||||
// to allow for other elements to be nested within the UriIndicator
|
||||
children: ?Node,
|
||||
inline: boolean,
|
||||
link: ?boolean,
|
||||
external?: boolean,
|
||||
focusable?: boolean, // Defaults to 'true' if not provided.
|
||||
hideAnonymous?: boolean,
|
||||
inline?: boolean,
|
||||
className?: string,
|
||||
focusable: boolean,
|
||||
children: ?Node, // to allow for other elements to be nested within the UriIndicator (commit: 1e82586f).
|
||||
// --- redux ---
|
||||
claim: ?Claim,
|
||||
isResolvingUri: boolean,
|
||||
resolveUri: (string) => void,
|
||||
};
|
||||
|
||||
class UriIndicator extends React.PureComponent<Props> {
|
||||
|
|
Loading…
Reference in a new issue