From f50edf937d55bbf3ab57729d769333dc01e445bf Mon Sep 17 00:00:00 2001 From: Ives van Hoorne Date: Wed, 20 Nov 2019 14:17:47 +0200 Subject: [PATCH] Disable font picker until we have an API key --- .../Editor/Workspace/Dependencies/index.tsx | 46 +++++++++++-------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/index.tsx b/packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/index.tsx index 4df1a559c89..194fb574cb5 100644 --- a/packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/index.tsx +++ b/packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/index.tsx @@ -107,27 +107,33 @@ export const Dependencies: FunctionComponent = () => { } /> ))} - Google Fonts - - workspace.externalResourceAdded({ - resource, - }) - } - addedResource={fonts} - /> - {fonts.map(resource => ( - - workspace.externalResourceRemoved({ - resource, - }) - } - /> - ))} + {/* Disable this until we have a way to not reach the Google API limit */} + {false && ( + <> + Google Fonts + + + workspace.externalResourceAdded({ + resource, + }) + } + addedResource={fonts} + /> + {fonts.map(resource => ( + + workspace.externalResourceRemoved({ + resource, + }) + } + /> + ))} + + )} )}