mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: export with solid color only
This commit is contained in:
parent
67573ba079
commit
6e7c302974
4 changed files with 57 additions and 21 deletions
|
@ -4,7 +4,7 @@ import * as RadixSelect from "@radix-ui/react-select";
|
|||
import "./Select.scss";
|
||||
import { tablerChevronDownIcon, tablerChevronUpIcon } from "./icons";
|
||||
|
||||
type SelectItems = Record<string, string>;
|
||||
type SelectItems = Record<string, { path: string | null; label: string }>;
|
||||
|
||||
export type SelectProps = {
|
||||
items: SelectItems;
|
||||
|
@ -43,7 +43,7 @@ const Select = ({
|
|||
<RadixSelect.Viewport className="Select__viewport">
|
||||
{Object.entries(items).map(([itemValue, itemLabel]) => (
|
||||
<SelectItem value={itemValue} key={itemValue}>
|
||||
{itemLabel}
|
||||
{itemLabel.label}
|
||||
</SelectItem>
|
||||
))}
|
||||
</RadixSelect.Viewport>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue