mirror of
https://github.com/ritz078/transform.git
synced 2026-11-27 19:29:19 +03:00
update-dependencies (#294)
* update-depenencies * fixes * fixes * fixes * fixes * multiple versions of tailwind css * multiple versions of tailwind css
This commit is contained in:
1 parent
4ebf5472cd
commit
efac463f2d
14 files changed
+1821
-823
No files matched your search
@@ -6,7 +6,6 @@ import {
|
||||
IconButton,
|
||||
Pane,
|
||||
Popover,
|
||||
Spinner,
|
||||
TextInput,
|
||||
toaster,
|
||||
Tooltip
|
||||
@@ -15,7 +14,6 @@ import React, { useCallback, useEffect, useRef, useState } from "react";
|
||||
import dynamic from "next/dynamic";
|
||||
import copy from "clipboard-copy";
|
||||
import Npm from "@assets/svgs/Npm";
|
||||
import { supportedLanguages } from "@utils/prettier";
|
||||
import { useDropzone } from "react-dropzone";
|
||||
|
||||
export interface EditorPanelProps {
|
||||
@@ -44,18 +42,7 @@ export interface EditorPanelProps {
|
||||
}
|
||||
|
||||
const Monaco = dynamic(() => import("../components/Monaco"), {
|
||||
ssr: false,
|
||||
loading: () => (
|
||||
<Pane
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
height={400}
|
||||
flex={1}
|
||||
>
|
||||
<Spinner />
|
||||
</Pane>
|
||||
)
|
||||
ssr: false
|
||||
});
|
||||
|
||||
export default function EditorPanel({
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import React from "react";
|
||||
import Editor from "@monaco-editor/react";
|
||||
import { Pane, Spinner } from "evergreen-ui";
|
||||
|
||||
export function processSize(size) {
|
||||
return !/^\d+$/.test(size) ? size : `${size}px`;
|
||||
@@ -34,6 +35,17 @@ export const Monaco: React.FC<MonacoProps> = ({
|
||||
width={width}
|
||||
options={options}
|
||||
onChange={onChange}
|
||||
loading={
|
||||
<Pane
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
height={400}
|
||||
flex={1}
|
||||
>
|
||||
<Spinner />
|
||||
</Pane>
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user