Skip to content

Commit

Permalink
Disable font picker until we have an API key
Browse files Browse the repository at this point in the history
  • Loading branch information
CompuIves committed Nov 20, 2019
1 parent 8332b65 commit f50edf9
Showing 1 changed file with 26 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,27 +107,33 @@ export const Dependencies: FunctionComponent = () => {
}
/>
))}
<WorkspaceSubtitle>Google Fonts</WorkspaceSubtitle>

<AddFont
addResource={resource =>
workspace.externalResourceAdded({
resource,
})
}
addedResource={fonts}
/>
{fonts.map(resource => (
<ExternalFonts
key={resource}
resource={resource}
removeResource={() =>
workspace.externalResourceRemoved({
resource,
})
}
/>
))}
{/* Disable this until we have a way to not reach the Google API limit */}
{false && (
<>
<WorkspaceSubtitle>Google Fonts</WorkspaceSubtitle>

<AddFont
addResource={(resource: string) =>
workspace.externalResourceAdded({
resource,
})
}
addedResource={fonts}
/>
{fonts.map(resource => (
<ExternalFonts
key={resource}
resource={resource}
removeResource={() =>
workspace.externalResourceRemoved({
resource,
})
}
/>
))}
</>
)}
</div>
)}
</div>
Expand Down

0 comments on commit f50edf9

Please sign in to comment.