diff --git a/src/components/BookDetail/TranslateButton.tsx b/src/components/BookDetail/TranslateButton.tsx index d39d0426..4da7ae9d 100644 --- a/src/components/BookDetail/TranslateButton.tsx +++ b/src/components/BookDetail/TranslateButton.tsx @@ -1,68 +1,70 @@ -// this engages a babel macro that does cool emotion stuff (like source maps). See https://emotion.sh/docs/babel-macros -import css from "@emotion/css/macro"; -// these two lines make the css prop work on react elements -import { jsx } from "@emotion/core"; -/** @jsx jsx */ - -import React from "react"; -import { FormattedMessage } from "react-intl"; -import { ReactComponent as TranslationIcon } from "../../assets/Translation.svg"; -import { Theme } from "@material-ui/core"; -import { commonUI } from "../../theme"; - -// This file used to be the whole DownloadToBloomButton. Then we added the option of a GetTemplateButton -// when the book to be downloaded is a template. Now this is just the bits that are unique to non-templates. -export const TranslateButton: React.FunctionComponent = (props) => { - return ( - -
-
- {str}, - }} - /> -
-
- -
-
-
- ); -}; - -export function getTranslateIcon(theme: Theme, inCreate: boolean) { - return ( - - ); -} +// this engages a babel macro that does cool emotion stuff (like source maps). See https://emotion.sh/docs/babel-macros +import css from "@emotion/css/macro"; +// these two lines make the css prop work on react elements +import { jsx } from "@emotion/core"; +/** @jsx jsx */ + +import React from "react"; +import { FormattedMessage } from "react-intl"; +import { ReactComponent as TranslationIcon } from "../../assets/Translation.svg"; +import { Theme } from "@material-ui/core"; +import { commonUI } from "../../theme"; + +// This file used to be the whole DownloadToBloomButton. Then we added the option of a GetTemplateButton +// when the book to be downloaded is a template. Now this is just the bits that are unique to non-templates. +export const TranslateButton: React.FunctionComponent = (props) => { + return ( + +
+
+ {str}, + }} + /> +
+
+ +
+
+
+ ); +}; + +export function getTranslateIcon(theme: Theme, inCreate: boolean) { + return ( + + ); +}