chore: icon cleanup (#13770)
Co-authored-by: Joe Au-Yeung <[email protected]> Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
294 files changed
+3161
-1715
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
|
||||
import { Icon } from "../../..";
|
||||
import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../form/dropdown";
|
||||
import { ChevronDown } from "../../icon";
|
||||
|
||||
interface IAddVariablesDropdown {
|
||||
addVariable: (variable: string) => void;
|
||||
@@ -20,14 +20,14 @@ export const AddVariablesDropdown = (props: IAddVariablesDropdown) => {
|
||||
<>
|
||||
<div className="hidden sm:flex">
|
||||
{t("add_variable")}
|
||||
<ChevronDown className="ml-1 mt-[2px] h-4 w-4" />
|
||||
<Icon name="chevron-down" className="ml-1 mt-[2px] h-4 w-4" />
|
||||
</div>
|
||||
<div className="block sm:hidden">+</div>
|
||||
</>
|
||||
) : (
|
||||
<div className="flex">
|
||||
{t("add_variable")}
|
||||
<ChevronDown className="ml-1 mt-[2px] h-4 w-4" />
|
||||
<Icon name="chevron-down" className="ml-1 mt-[2px] h-4 w-4" />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -25,9 +25,9 @@ import {
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import { createPortal } from "react-dom";
|
||||
|
||||
import { Icon } from "../../..";
|
||||
import { Button } from "../../button";
|
||||
import { Dropdown, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../form/dropdown";
|
||||
import { Bold, ChevronDown, Italic, Link } from "../../icon";
|
||||
import type { TextEditorProps } from "../Editor";
|
||||
import { AddVariablesDropdown } from "./AddVariablesDropdown";
|
||||
|
||||
@@ -424,7 +424,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
<span className="text text-default hidden sm:flex">
|
||||
{blockTypeToBlockName[blockType as keyof BlockType]}
|
||||
</span>
|
||||
<ChevronDown className="text-default ml-2 h-4 w-4" />
|
||||
<Icon name="chevron-down" className="text-default ml-2 h-4 w-4" />
|
||||
</>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="start">
|
||||
@@ -458,7 +458,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={Bold}
|
||||
StartIcon="bold"
|
||||
onClick={() => {
|
||||
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold");
|
||||
}}
|
||||
@@ -470,7 +470,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={Italic}
|
||||
StartIcon="italic"
|
||||
onClick={() => {
|
||||
editor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic");
|
||||
}}
|
||||
@@ -483,7 +483,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
type="button"
|
||||
StartIcon={Link}
|
||||
StartIcon="link"
|
||||
onClick={insertLink}
|
||||
className={isLink ? "bg-subtle" : ""}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user