Merge remote-tracking branch 'origin/feat/dnd-kit-grid' into HEAD
This commit is contained in:
1 file changed
+3
-1
@@ -4,6 +4,8 @@ import { useState } from "react";
|
|||||||
import { Button, Modal } from "@mantine/core";
|
import { Button, Modal } from "@mantine/core";
|
||||||
import { IconDownload } from "@tabler/icons-react";
|
import { IconDownload } from "@tabler/icons-react";
|
||||||
|
|
||||||
|
import { modalSizeSelect } from "@homarr/modals";
|
||||||
|
|
||||||
import { WorkshopBrowser } from "./workshop-browser";
|
import { WorkshopBrowser } from "./workshop-browser";
|
||||||
|
|
||||||
export function WorkshopCssImportButton({ onImport }: { onImport(css: string): void }) {
|
export function WorkshopCssImportButton({ onImport }: { onImport(css: string): void }) {
|
||||||
@@ -14,7 +16,7 @@ export function WorkshopCssImportButton({ onImport }: { onImport(css: string): v
|
|||||||
<Button type="button" variant="light" leftSection={<IconDownload size={16} />} onClick={() => setOpened(true)}>
|
<Button type="button" variant="light" leftSection={<IconDownload size={16} />} onClick={() => setOpened(true)}>
|
||||||
Import from Workshop
|
Import from Workshop
|
||||||
</Button>
|
</Button>
|
||||||
<Modal opened={opened} onClose={() => setOpened(false)} title="Import Custom CSS" size="xl">
|
<Modal opened={opened} onClose={() => setOpened(false)} title="Import Custom CSS" size={modalSizeSelect}>
|
||||||
<WorkshopBrowser
|
<WorkshopBrowser
|
||||||
type="customCss"
|
type="customCss"
|
||||||
onUseCss={(css) => {
|
onUseCss={(css) => {
|
||||||
|
|||||||
Reference in new issue
Block a user