File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ const formatPeopleList = arr => arr.map(w => w.replace(' ', ' ')).join(' • ')
6161type Props = TopLevelViewPropsType
6262
6363type State = {
64- supported : boolean ,
6564 iconType : null | string ,
6665}
6766
@@ -71,29 +70,21 @@ export default class CreditsView extends React.Component<Props, State> {
7170 }
7271
7372 state = {
74- supported : false ,
7573 iconType : null ,
7674 }
7775
7876 componentWillMount ( ) {
79- this . checkIfCustomIconsSupported ( )
8077 this . getIcon ( )
8178 }
8279
83- checkIfCustomIconsSupported = async ( ) => {
84- const supported = await Icons . isSupported ( )
85- this . setState ( ( ) => ( { supported} ) )
86- }
87-
8880 getIcon = async ( ) => {
8981 const name = await Icons . getIconName ( )
9082 this . setState ( ( ) => ( { iconType : name } ) )
9183 }
9284
9385 render ( ) {
94- const image = this . state . supported
95- ? this . state . iconType === 'default' ? appIcons . oldMain : appIcons . windmill
96- : appIcons . oldMain
86+ const image =
87+ this . state . iconType === 'default' ? appIcons . oldMain : appIcons . windmill
9788
9889 return (
9990 < Container contentInsetAdjustmentBehavior = "automatic" >
You can’t perform that action at this time.
0 commit comments