File tree 3 files changed +20
-19
lines changed
src/components/AppDetails
3 files changed +20
-19
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ msgstr ""
5
5
"Content-Type : text/plain; charset=utf-8\n "
6
6
"Content-Transfer-Encoding : 8bit\n "
7
7
"Plural-Forms : nplurals=2; plural=(n != 1)\n "
8
- "POT-Creation-Date : 2021-06-23T11:27:13.375Z \n "
9
- "PO-Revision-Date : 2021-06-23T11:27:13.375Z \n "
8
+ "POT-Creation-Date : 2021-07-02T09:59:39.076Z \n "
9
+ "PO-Revision-Date : 2021-07-02T09:59:39.076Z \n "
10
10
11
11
msgid "Version {{version}} installed"
12
12
msgstr "Version {{version}} installed"
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ export const AppDetails = ({
92
92
const appDeveloper = appHubApp
93
93
? appHubApp . developer . organisation || appHubApp . developer . name
94
94
: installedApp . developer ?. company || installedApp . developer ?. name
95
+ const description = appHubApp
96
+ ? appHubApp . description
97
+ : installedApp . description
95
98
const screenshots = appHubApp ?. images
96
99
. filter ( i => ! i . logo )
97
100
. map ( i => i . imageUrl )
@@ -111,22 +114,20 @@ export const AppDetails = ({
111
114
</ header >
112
115
< Divider />
113
116
< section className = { [ styles . section , styles . mainSection ] . join ( ' ' ) } >
114
- { appHubApp && (
115
- < div >
116
- < h2 className = { styles . sectionHeader } >
117
- { i18n . t ( 'About this app' ) }
118
- </ h2 >
119
- < p >
120
- { appHubApp . description || (
121
- < em >
122
- { i18n . t (
123
- 'The developer of this application has not provided a description'
124
- ) }
125
- </ em >
126
- ) }
127
- </ p >
128
- </ div >
129
- ) }
117
+ < div >
118
+ < h2 className = { styles . sectionHeader } >
119
+ { i18n . t ( 'About this app' ) }
120
+ </ h2 >
121
+ < p >
122
+ { description || (
123
+ < em >
124
+ { i18n . t (
125
+ 'The developer of this application has not provided a description'
126
+ ) }
127
+ </ em >
128
+ ) }
129
+ </ p >
130
+ </ div >
130
131
< div >
131
132
< ManageInstalledVersion
132
133
installedApp = { installedApp }
Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ export const ManageInstalledVersion = ({
100
100
}
101
101
102
102
ManageInstalledVersion . propTypes = {
103
- versions : PropTypes . array . isRequired ,
104
103
onVersionInstall : PropTypes . func . isRequired ,
105
104
installedApp : PropTypes . object ,
105
+ versions : PropTypes . array ,
106
106
onUninstall : PropTypes . func ,
107
107
}
You can’t perform that action at this time.
0 commit comments