From 60864ace548f3c14863c10ede92c9f858be73849 Mon Sep 17 00:00:00 2001 From: Kartik Prajapati Date: Mon, 14 Dec 2020 18:54:54 +0530 Subject: [PATCH] feat: Add tooltip with icon for embedding scenes (#2532) Co-authored-by: dwelle --- src/actions/actionExport.tsx | 12 +++++- src/components/LayerUI.scss | 58 ---------------------------- src/components/LayerUI.tsx | 8 ++-- src/components/ToolIcon.scss | 13 +++++++ src/components/Tooltip.scss | 37 +++++++++++++----- src/components/Tooltip.tsx | 20 +++++++++- src/components/icons.tsx | 5 +++ src/packages/excalidraw/CHANGELOG.MD | 1 + 8 files changed, 78 insertions(+), 76 deletions(-) diff --git a/src/actions/actionExport.tsx b/src/actions/actionExport.tsx index fae8e4ca22..2748ad3a4d 100644 --- a/src/actions/actionExport.tsx +++ b/src/actions/actionExport.tsx @@ -3,12 +3,15 @@ import { EVENT_CHANGE, EVENT_IO, trackEvent } from "../analytics"; import { load, save, saveAs } from "../components/icons"; import { ProjectName } from "../components/ProjectName"; import { ToolButton } from "../components/ToolButton"; +import { Tooltip } from "../components/Tooltip"; +import { questionCircle } from "../components/icons"; import { loadFromJSON, saveAsJSON } from "../data"; import { t } from "../i18n"; import useIsMobile from "../is-mobile"; import { KEYS } from "../keys"; import { muteFSAbortError } from "../utils"; import { register } from "./register"; +import "../components/ToolIcon.scss"; export const actionChangeProjectName = register({ name: "changeProjectName", @@ -54,13 +57,20 @@ export const actionChangeExportEmbedScene = register({ }; }, PanelComponent: ({ appState, updateData }) => ( -