File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/AddFont/FontPicker Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ type Props = {
99 expanded : boolean ;
1010} ;
1111
12- const FontList : FunctionComponent < Props > = ( {
12+ export const FontList : FunctionComponent < Props > = ( {
1313 fonts,
1414 onSelection,
1515 activeFontFamily,
@@ -56,5 +56,3 @@ const FontList: FunctionComponent<Props> = ({
5656 </ >
5757 ) ;
5858} ;
59-
60- export default FontList ;
Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ export const SelectedFont = styled.button<{ done?: boolean }>`
103103 css `
104104 :after {
105105 content: '';
106- background-image: url("data:image/svg+xml,%3Csvg width='7' height='4' viewBox='0 0 7 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.50007 4L1.27146e-07 1.35122e-07L7 -4.76837e-07L3.50007 4Z' fill='white'/%3E%3C/svg%3E%0A");
106+ background-image: url("${ `data:image/svg+xml,%3Csvg width='7' height='4' viewBox='0 0 7 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.50007 4L1.27146e-07 1.35122e-07L7 -4.76837e-07L3.50007 4Z' fill='${
107+ props . theme . light ? 'black' : 'white'
108+ } '/%3E%3C/svg%3E%0A`} ");
107109 width: 7px;
108110 height: 4px;
109111 position: absolute;
Original file line number Diff line number Diff line change 77import React , { useState , useEffect } from 'react' ;
88import OutsideClickHandler from 'react-outside-click-handler' ;
99import { SelectedFont } from './elements' ;
10- import FontList from './List' ;
10+ import { FontList } from './List' ;
1111
1212export const FontPicker = ( {
1313 activeFontFamily = FONT_FAMILY_DEFAULT ,
You can’t perform that action at this time.
0 commit comments