Show labels instead of icons for PNG, SVG (#606)

This commit is contained in:
Lipis
2020-01-29 02:30:03 +02:00
committed by GitHub
parent a9790c74f5
commit 2dce2ce712
4 changed files with 7 additions and 23 deletions

View File

@ -4,7 +4,7 @@ import React, { useState, useEffect, useRef } from "react";
import { Modal } from "./Modal";
import { ToolButton } from "./ToolButton";
import { clipboard, exportFile, downloadFile, svgFile, link } from "./icons";
import { clipboard, exportFile, link } from "./icons";
import { Island } from "./Island";
import { ExcalidrawElement } from "../element/types";
import { AppState } from "../types";
@ -133,7 +133,7 @@ function ExportModal({
<Stack.Row gap={2}>
<ToolButton
type="button"
icon={downloadFile}
label="PNG"
title={t("buttons.exportToPng")}
aria-label={t("buttons.exportToPng")}
onClick={() => onExportToPng(exportedElements, scale)}
@ -141,7 +141,7 @@ function ExportModal({
/>
<ToolButton
type="button"
icon={svgFile}
label="SVG"
title={t("buttons.exportToSvg")}
aria-label={t("buttons.exportToSvg")}
onClick={() => onExportToSvg(exportedElements, scale)}