From ba0fa7a64e7b225ef9cca188b8894f6fda7502a4 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 15 Dec 2021 09:27:08 +0100 Subject: [PATCH] Support Google Sheets embeds in docs (#9861) --- website/src/components/embed.js | 22 +++++++++++++++++++++- website/src/styles/embed.module.sass | 4 ++++ website/src/templates/index.js | 3 ++- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/website/src/components/embed.js b/website/src/components/embed.js index 8d82bfaae..9f959bc99 100644 --- a/website/src/components/embed.js +++ b/website/src/components/embed.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types' import classNames from 'classnames' import Link from './link' +import Button from './button' import { InlineCode } from './code' import { markdownToReact } from './util' @@ -104,4 +105,23 @@ const Image = ({ src, alt, title, ...props }) => { ) } -export { YouTube, SoundCloud, Iframe, Image } +const GoogleSheet = ({ id, link, height, button = 'View full table' }) => { + return ( +
+