@@ -7,13 +7,6 @@ import { store } from '../../store.js'; // connect to redux
7
7
import { Tooltip } from '../pl-tooltip/pl-tooltip' ;
8
8
import VisuallyHidden from '@reach/visually-hidden' ;
9
9
10
- import PhoneIcon from '../../../icons/phone.svg' ;
11
- import TabletIcon from '../../../icons/tablet.svg' ;
12
- import LaptopIcon from '../../../icons/laptop.svg' ;
13
- import DesktopIcon from '../../../icons/desktop.svg' ;
14
- import DiscoIcon from '../../../icons/disco-ball.svg' ;
15
- import RandomIcon from '../../../icons/random.svg' ;
16
-
17
10
import { minViewportWidth , maxViewportWidth , getRandom } from '../../utils' ;
18
11
19
12
// @todo : re-add keyboard shortcuts to these
@@ -116,11 +109,10 @@ class ViewportSizes extends BaseComponent {
116
109
onClick = { e => this . resizeViewport ( 'small' ) }
117
110
>
118
111
< VisuallyHidden > Resize viewport to small</ VisuallyHidden >
119
- < PhoneIcon
120
- width = { 14 }
121
- height = { 20 }
122
- fill = "currentColor"
123
- viewBox = "0 0 24 12"
112
+ < span
113
+ dangerouslySetInnerHTML = { {
114
+ __html : '<pl-icon name="phone"></pl-icon>' ,
115
+ } }
124
116
/>
125
117
</ button >
126
118
) }
@@ -145,11 +137,10 @@ class ViewportSizes extends BaseComponent {
145
137
onClick = { e => this . resizeViewport ( 'medium' ) }
146
138
>
147
139
< VisuallyHidden > Resize viewport to medium</ VisuallyHidden >
148
- < TabletIcon
149
- width = { 16 }
150
- height = { 24 }
151
- fill = "currentColor"
152
- viewBox = "0 0 24 16"
140
+ < span
141
+ dangerouslySetInnerHTML = { {
142
+ __html : '<pl-icon name="tablet"></pl-icon>' ,
143
+ } }
153
144
/>
154
145
</ button >
155
146
) }
@@ -174,11 +165,10 @@ class ViewportSizes extends BaseComponent {
174
165
onClick = { e => this . resizeViewport ( 'large' ) }
175
166
>
176
167
< VisuallyHidden > Resize viewport to large</ VisuallyHidden >
177
- < LaptopIcon
178
- width = { 24 }
179
- height = { 22 }
180
- fill = "currentColor"
181
- viewBox = "0 0 24 20"
168
+ < span
169
+ dangerouslySetInnerHTML = { {
170
+ __html : '<pl-icon name="laptop"></pl-icon>' ,
171
+ } }
182
172
/>
183
173
</ button >
184
174
) }
@@ -203,11 +193,10 @@ class ViewportSizes extends BaseComponent {
203
193
onClick = { e => this . resizeViewport ( 'full' ) }
204
194
>
205
195
< VisuallyHidden > Resize viewport to full</ VisuallyHidden >
206
- < DesktopIcon
207
- width = { 24 }
208
- height = { 22 }
209
- fill = "currentColor"
210
- viewBox = "0 0 24 20"
196
+ < span
197
+ dangerouslySetInnerHTML = { {
198
+ __html : '<pl-icon name="desktop"></pl-icon>' ,
199
+ } }
211
200
/>
212
201
</ button >
213
202
) }
0 commit comments