@@ -46,6 +46,12 @@ import { createSpaceFromCommunity } from "../../utils/space";
46
46
import { Action } from "../../dispatcher/actions" ;
47
47
import { RightPanelPhases } from "../../stores/right-panel/RightPanelStorePhases" ;
48
48
import { UPDATE_EVENT } from "../../stores/AsyncStore" ;
49
+ import CreateRoomSvg from '../../../res/img/icons-create-room.svg' ;
50
+ import CancelSmallSvg from '../../../res/img/cancel-small.svg' ;
51
+ import CancelSvg from '../../../res/img/cancel.svg' ;
52
+ import ExternalLinkSvg from '../../../res/img/external-link.svg' ;
53
+ import AddRoomSvg from '../../../res/img/icons-room-add.svg' ;
54
+ import CameraSvg from '../../../res/img/camera.svg' ;
49
55
50
56
const LONG_DESC_PLACEHOLDER = _td (
51
57
`<h1>HTML for your community's page</h1>
@@ -135,7 +141,7 @@ class CategoryRoomList extends React.Component {
135
141
( < AccessibleButton className = "mx_GroupView_featuredThings_addButton"
136
142
onClick = { this . onAddRoomsToSummaryClicked }
137
143
>
138
- < img src = { require ( "../../../res/img/icons-create-room.svg" ) } width = "64" height = "64" />
144
+ < img src = { CreateRoomSvg } width = "64" height = "64" />
139
145
< div className = "mx_GroupView_featuredThings_addButton_label" >
140
146
{ _t ( 'Add a Room' ) }
141
147
</ div >
@@ -235,7 +241,7 @@ class FeaturedRoom extends React.Component {
235
241
const deleteButton = this . props . editing ?
236
242
< img
237
243
className = "mx_GroupView_featuredThing_deleteButton"
238
- src = { require ( "../../../res/img/cancel-small.svg" ) }
244
+ src = { CancelSmallSvg }
239
245
width = "14"
240
246
height = "14"
241
247
alt = "Delete"
@@ -306,7 +312,7 @@ class RoleUserList extends React.Component {
306
312
render ( ) {
307
313
const addButton = this . props . editing ?
308
314
( < AccessibleButton className = "mx_GroupView_featuredThings_addButton" onClick = { this . onAddUsersClicked } >
309
- < img src = { require ( "../../../res/img/icons-create-room.svg" ) } width = "64" height = "64" />
315
+ < img src = { CreateRoomSvg } width = "64" height = "64" />
310
316
< div className = "mx_GroupView_featuredThings_addButton_label" >
311
317
{ _t ( 'Add a User' ) }
312
318
</ div >
@@ -386,7 +392,7 @@ class FeaturedUser extends React.Component {
386
392
const deleteButton = this . props . editing ?
387
393
< img
388
394
className = "mx_GroupView_featuredThing_deleteButton"
389
- src = { require ( "../../../res/img/cancel-small.svg" ) }
395
+ src = { CancelSmallSvg }
390
396
width = "14"
391
397
height = "14"
392
398
alt = "Delete"
@@ -844,7 +850,7 @@ export default class GroupView extends React.Component {
844
850
} ,
845
851
) }
846
852
< a href = { hostingSignupLink } target = "_blank" rel = "noreferrer noopener" >
847
- < img src = { require ( "../../../res/img/external-link.svg" ) } width = "11" height = "10" alt = '' />
853
+ < img src = { ExternalLinkSvg } width = "11" height = "10" alt = '' />
848
854
</ a >
849
855
</ div > ;
850
856
}
@@ -925,7 +931,7 @@ export default class GroupView extends React.Component {
925
931
onClick = { this . _onAddRoomsClick }
926
932
>
927
933
< div className = "mx_GroupView_rooms_header_addRow_button" >
928
- < img src = { require ( "../../../res/img/icons-room-add.svg" ) } width = "24" height = "24" />
934
+ < img src = { AddRoomSvg } width = "24" height = "24" />
929
935
</ div >
930
936
< div className = "mx_GroupView_rooms_header_addRow_label" >
931
937
{ _t ( 'Add rooms to this community' ) }
@@ -1257,7 +1263,7 @@ export default class GroupView extends React.Component {
1257
1263
< div className = "mx_GroupView_avatarPicker_edit" >
1258
1264
< label htmlFor = "avatarInput" className = "mx_GroupView_avatarPicker_label" >
1259
1265
< img
1260
- src = { require ( "../../../res/img/camera.svg" ) }
1266
+ src = { CameraSvg }
1261
1267
alt = { _t ( "Upload avatar" ) }
1262
1268
title = { _t ( "Upload avatar" ) }
1263
1269
width = "17"
@@ -1331,7 +1337,7 @@ export default class GroupView extends React.Component {
1331
1337
onClick = { this . _onCancelClick }
1332
1338
>
1333
1339
< img
1334
- src = { require ( "../../../res/img/cancel.svg" ) }
1340
+ src = { CancelSvg }
1335
1341
className = "mx_filterFlipColor"
1336
1342
width = "18"
1337
1343
height = "18"
0 commit comments