Skip to content

Upgrade styled-component + Unit test fixes + Publish packages workflows #617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
54786b8
publish comps workflow
raheeliftikhar5 Dec 28, 2023
ae43e5f
upgrade styles-components dependency
raheeliftikhar5 Dec 29, 2023
1e03ad2
updates after styled-compoents upgrade + fixing unit tests
raheeliftikhar5 Jan 1, 2024
3381113
unit test fixes
raheeliftikhar5 Jan 4, 2024
ab73917
fixed unit tests
raheeliftikhar5 Jan 4, 2024
c4f898a
test workflow
raheeliftikhar5 Jan 4, 2024
796da3c
test workflow
raheeliftikhar5 Jan 4, 2024
52c9ceb
test workflow
raheeliftikhar5 Jan 4, 2024
5f060af
test workflow
raheeliftikhar5 Jan 4, 2024
26918a7
test workflow
raheeliftikhar5 Jan 4, 2024
b4c0c16
test workflow
raheeliftikhar5 Jan 4, 2024
86ece8e
test workflow
raheeliftikhar5 Jan 4, 2024
96751cd
test workflow
raheeliftikhar5 Jan 4, 2024
1814ff6
test workflow
raheeliftikhar5 Jan 4, 2024
763b6f1
test workflow
raheeliftikhar5 Jan 4, 2024
a987f29
test workflow
raheeliftikhar5 Jan 4, 2024
893d9fd
test workflow
raheeliftikhar5 Jan 4, 2024
7f73699
test workflow
raheeliftikhar5 Jan 4, 2024
b87c556
test workflow
raheeliftikhar5 Jan 5, 2024
7f8e816
test workflow
raheeliftikhar5 Jan 5, 2024
1e702b2
test workflow
raheeliftikhar5 Jan 5, 2024
79ae92d
test workflow
raheeliftikhar5 Jan 5, 2024
8252f7e
test workflow
raheeliftikhar5 Jan 5, 2024
85feb40
test workflow
raheeliftikhar5 Jan 5, 2024
45d7cce
publish lowcoder-comps workflow
raheeliftikhar5 Jan 5, 2024
61f6c23
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
a9abad1
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
1aa6c19
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
954497f
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
74d17a7
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
41470f0
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
a160f0b
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
e90e3b3
publish lowcoder-cli workflow
raheeliftikhar5 Jan 5, 2024
92b6de6
test lowcoder-core pipeline
raheeliftikhar5 Jan 5, 2024
3a444fa
test lowcoder-core pipeline
raheeliftikhar5 Jan 5, 2024
04b61f2
publish lowcoder-core workflow
raheeliftikhar5 Jan 5, 2024
c592c10
publish lowcoder-core workflow
raheeliftikhar5 Jan 5, 2024
4344485
test lowcoder-sdk pipeline
raheeliftikhar5 Jan 5, 2024
b988fe1
test lowcoder-sdk pipeline
raheeliftikhar5 Jan 5, 2024
520b626
publish lowcoder-sdk workflow
raheeliftikhar5 Jan 5, 2024
3fd234d
branch and access token update
raheeliftikhar5 Jan 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updates after styled-compoents upgrade + fixing unit tests
  • Loading branch information
raheeliftikhar5 committed Jan 1, 2024
commit 1e03ad286b5d1895b8e55e43939249b44cadf776
15 changes: 15 additions & 0 deletions client/config/test/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ export default {
testEnvironment: "jsdom",
moduleNameMapper: {
"react-markdown": path.resolve(currentDir, "./mocks/react-markdown.js"),
"react-redux": path.resolve(currentDir, "./mocks/react-redux.js"),
"react-draggable": path.resolve(currentDir, "./mocks/react-draggable.js"),
"react-resize-detector": path.resolve(currentDir, "./mocks/react-resize-detector.js"),
"react-virtualized": path.resolve(currentDir, "./mocks/react-virtualized.js"),
"@dnd-kit/sortable": path.resolve(currentDir, "./mocks/dnd-kit-sortable.js"),
"@dnd-kit/core": path.resolve(currentDir, "./mocks/dnd-kit-core.js"),
"antd": path.resolve(currentDir, "./mocks/antd.js"),
"history": path.resolve(currentDir, "./mocks/history.js"),
"\\.md\\?url$": path.resolve(currentDir, "./mocks/markdown-url-module.js"),
"^@lowcoder-ee(.*)$": path.resolve(
currentDir,
Expand All @@ -35,6 +43,13 @@ export default {
path.resolve(currentDir, "../../packages/lowcoder-comps/src"),
path.resolve(currentDir, "../../packages/lowcoder-design/src"),
],
// moduleDirectories: [
// "<rootDir>/client/node_modules",
// path.resolve(currentDir, "../../node_modules"),
// path.resolve(currentDir, "../../packages/lowcoder/node_modules"),
// path.resolve(currentDir, "../../packages/lowcoder-comps/node_modules"),
// path.resolve(currentDir, "../../packages/lowcoder-design/node_modules"),
// ],
setupFiles: [path.resolve(currentDir, "./jest.setup.js")],
setupFilesAfterEnv: [path.resolve(currentDir, "./jest.setup-after-env.js"), 'jest-canvas-mock'],
transform: {
Expand Down
24 changes: 21 additions & 3 deletions client/config/test/jest.setup-after-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,26 @@ window.ResizeObserver = function () {
};
};

window.ImageData = {}
window.MediaStreamTrack = {}
window.URL.createObjectURL = () => {}
// window.ImageData = {}
// window.MediaStreamTrack = {}
// window.URL.createObjectURL = () => {}
Object.defineProperty(window, 'ImageData', { value: 'yourValue' });
Object.defineProperty(window, 'MediaStreamTrack', { value: 'yourValue' });
Object.defineProperty(window, 'URL', {
writable: true,
value: {
createObjectURL: jest.fn(),
}
});
Object.defineProperty(window, "navigator", {
writable: true,
value: {
mediaDevices: {
enumerateDevices: jest.fn(),
},
userAgent: '',
},
});

class Worker {
constructor(stringUrl) {
Expand All @@ -36,4 +53,5 @@ class Worker {
this.onmessage(msg);
}
}

window.Worker = Worker;
6 changes: 3 additions & 3 deletions client/config/test/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if (typeof window !== "undefined") {
require("whatwg-fetch");
}
// if (typeof window !== "undefined") {
// require("whatwg-fetch");
// }
1 change: 1 addition & 0 deletions client/config/test/mocks/antd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default jest.mock('antd');
1 change: 1 addition & 0 deletions client/config/test/mocks/dnd-kit-core.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default jest.mock("@dnd-kit/core");
1 change: 1 addition & 0 deletions client/config/test/mocks/dnd-kit-sortable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default jest.mock("@dnd-kit/sortable");
1 change: 1 addition & 0 deletions client/config/test/mocks/history.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default jest.mock('history');
1 change: 1 addition & 0 deletions client/config/test/mocks/react-draggable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default jest.mock('react-draggable');
3 changes: 3 additions & 0 deletions client/config/test/mocks/react-redux.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default jest.mock("react-redux", () => ({
connect: () => (Component) => Component,
}));
1 change: 1 addition & 0 deletions client/config/test/mocks/react-resize-detector.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default jest.mock('react-resize-detector');
1 change: 1 addition & 0 deletions client/config/test/mocks/react-virtualized.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default jest.mock('react-virtualized');
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import {
CalendarDeleteIcon,
Tooltip,
} from "lowcoder-sdk";
import { Input, Form } from "antd";
import { default as Form } from "antd/es/form";
import { default as Input } from "antd/es/input";
import { trans, getCalendarLocale } from "../../i18n/comps";
import { createRef, useContext, useRef, useState } from "react";
import FullCalendar from "@fullcalendar/react";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
SlotLabelContentArg,
ViewContentArg,
} from "@fullcalendar/core";
import { Form } from "antd";
import { default as Form } from "antd/es/form";

export const Wrapper = styled.div<{
$editable: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from "styled-components";
import { Button } from "antd";
import { default as Button } from "antd/es/button";
import { EventConfigType } from "lowcoder-sdk";
import { trans } from "i18n/comps";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Collapse as AntdCollapse, CollapseProps } from "antd";
import { default as AntdCollapse, CollapseProps } from "antd/es/collapse";
import { ReactComponent as UnFold } from "icons/icon-unfold.svg";
import { ReactComponent as Folded } from "icons/icon-folded.svg";
import { ReactComponent as Omit } from "icons/icon-omit.svg";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ButtonProps, Modal as AntdModal } from "antd";
import { ModalFuncProps, ModalProps as AntdModalProps } from "antd/lib/modal";
import { ButtonProps } from "antd/es/button";
import { default as AntdModal, ModalFuncProps, ModalProps as AntdModalProps } from "antd/es/modal";
import { ReactComponent as PackUpIcon } from "icons/icon-Pack-up.svg";
import React, { ReactNode, useState } from "react";
import styled from "styled-components";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/Drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Drawer as AntdDrawer, DrawerProps as AntdDrawerProps } from "antd";
import { default as AntdDrawer, DrawerProps as AntdDrawerProps } from "antd/es/drawer";
import Handle from "./Modal/handler";
import { useEffect, useMemo, useState } from "react";
import { Resizable, ResizeHandle } from "react-resizable";
Expand Down
3 changes: 2 additions & 1 deletion client/packages/lowcoder-design/src/components/Dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Segmented as AntdSegmented, SelectProps } from "antd";
import { default as AntdSegmented } from "antd/es/segmented";
import { SelectProps } from "antd/es/select";
import { GreyTextColor } from "constants/style";
import _ from "lodash";
import { ReactNode } from "react";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from "styled-components";
import { Input as AntdInput, InputProps as AntdInputProps, InputRef } from "antd";
import { default as AntdInput, InputProps as AntdInputProps, InputRef } from "antd/es/input";
import { BorderActiveColor, BorderColor, BorderRadius, GreyTextColor } from "constants/style";
import { ChangeEvent, useEffect, useRef, useState } from "react";
import _ from "lodash";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Menu as AntdMenu, MenuProps, SubMenuProps } from "antd";
import { default as AntdMenu, MenuProps, SubMenuProps } from "antd/es/menu";
import { NormalMenuIconColor, TabActiveColor } from "constants/style";
import { ReactComponent as AddIcon } from "icons/icon-add.svg";
import { ReactComponent as RecycleBinIcon } from "icons/icon-recycle-bin.svg";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Modal as AntdModal, ModalProps as AntdModalProps } from "antd";
import { default as AntdModal, ModalProps as AntdModalProps } from "antd/es/modal";
import { useEffect, useState } from "react";
import { Resizable, ResizeHandle } from "react-resizable";
import { useResizeDetector } from "react-resize-detector";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/Search.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from "styled-components";
import { Input, InputProps } from "antd";
import { default as Input, InputProps } from "antd/es/input";
import { ReactComponent as Icon } from "icons/icon-Search.svg";
import React, { CSSProperties } from "react";

Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Table } from "antd";
import { default as Table } from "antd/es/table";
import styled from "styled-components";

const { Column } = Table;
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Alert as AntAlert, AlertProps } from "antd";
import { default as AntAlert, AlertProps } from "antd/es/alert";
import styled from "styled-components";

const Container = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, ButtonProps } from "antd";
import Button, { ButtonProps } from "antd/es/button";
import styled, { css } from "styled-components";
import { Loading } from "./Loading";
import * as React from "react";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Checkbox as AntdCheckBox } from "antd";
import { default as AntdCheckBox } from "antd/es/checkbox";
import styled from "styled-components";

const CheckBox = styled(AntdCheckBox)`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RgbaStringColorPicker } from "react-colorful";
import { Popover } from "antd";
import { default as Popover } from "antd/es/popover";
import { ActionType } from '@rc-component/trigger/lib/interface';
import {
alphaOfRgba,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Select as AntdSelect, SelectProps as AntdSelectProps } from "antd";
import { default as AntdSelect, SelectProps as AntdSelectProps } from "antd/es/select";
import { ReactComponent as PackUpIcon } from "icons/icon-Pack-up.svg";
import styled from "styled-components";
import React from "react";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from "styled-components";
import { ReactComponent as Edit } from "icons/icon-text-edit.svg";
import { CSSProperties, ReactNode, useEffect, useRef, useState } from "react";
import { Input } from "../components/Input";
import { InputProps, InputRef } from "antd";
import { InputProps, InputRef } from "antd/es/input";

const Wrapper = styled.div`
position: relative;
Expand Down
24 changes: 9 additions & 15 deletions client/packages/lowcoder-design/src/components/form.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
import {
Form,
Input,
InputNumber,
InputNumberProps,
InputProps,
Radio,
Select,
SelectProps,
} from "antd";
import { default as Form } from "antd/es/form";
import { default as AntdFormItem, FormItemProps as AntdFormItemProps } from "antd/es/form/FormItem";
import { default as Input, InputProps } from "antd/es/input";
import { default as TextArea, TextAreaProps } from "antd/es/input/TextArea";
import { default as InputNumber, InputNumberProps } from "antd/es/input-number";
import { default as Radio, RadioGroupProps } from "antd/es/radio";
import { default as Select, SelectProps } from "antd/es/select";
import { ReactNode } from "react";
import { CheckBox } from "./checkBox";
import { CustomSelect } from "./customSelect";
import { EllipsisTextCss, labelCss } from "./Label";
import { ToolTipLabel } from "./toolTip";
import styled from "styled-components";
import { ReactComponent as Star } from "icons/icon-star.svg";
import { FormItemProps as AntdFormItemProps } from "antd/lib/form/FormItem";
import _ from "lodash";
import { KeyValueList } from "./keyValueList";
import { OptionsType, ValueFromOption } from "./Dropdown";
import { RadioGroupProps } from "antd/lib/radio/interface";
import { TextAreaProps } from "antd/lib/input";

export type FormSize = "middle" | "small";

const FormItem = styled(Form.Item)`
const FormItem = styled(AntdFormItem)`
min-width: 0;
flex-grow: 1;
margin: 0;
Expand Down Expand Up @@ -69,7 +63,7 @@ const FormInputPassword = styled(Input)`
border-radius: 4px;
`;

const FormTextArea = styled(Input.TextArea)`
const FormTextArea = styled(TextArea)`
background: #ffffff;
`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import type { IconDefinition } from "@fortawesome/free-regular-svg-icons";
import { Popover } from "antd";
import { default as Popover } from "antd/es/popover";
import { ActionType } from '@rc-component/trigger/lib/interface';
import { TacoInput } from "components/tacoInput";
import { Tooltip } from "components/toolTip";
import { trans } from "i18n/design";
import _ from "lodash";
import { ReactNode, useEffect, useCallback, useMemo, useRef, useState } from "react";
import Draggable from "react-draggable";
import { List, ListRowProps } from "react-virtualized";
import { default as List, ListRowProps } from "react-virtualized/dist/es/List";
import styled from "styled-components";
import { CloseIcon, SearchIcon } from "icons";

Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/popover.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SuspensionBox } from "./SuspensionBox";
import { Popover, PopoverProps } from "antd";
import { default as Popover, PopoverProps } from "antd/es/popover";
import { Children, cloneElement, MouseEvent, ReactNode, useState } from "react";
import styled from "styled-components";
import { ActiveTextColor, GreyTextColor } from "constants/style";
Expand Down
3 changes: 2 additions & 1 deletion client/packages/lowcoder-design/src/components/popupCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Alert, Card } from "antd";
import { default as Alert } from "antd/es/alert";
import { default as Card } from "antd/es/card";
import { CopyTextButton } from "./copyTextButton";
import { CSSProperties, ReactNode, useState } from "react";
import styled from "styled-components";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/query.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled, { css } from "styled-components";
import { Alert } from "antd";
import { default as Alert } from "antd/es/alert";
import { ReactNode } from "react";
import { AlertProps } from "antd/lib/alert";
import { ToolTipLabel } from "./toolTip";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Input as AntdInput, InputRef } from "antd";
import { default as AntdInput, InputRef } from "antd/es/input";
import { ReactComponent as MustFillStar } from "icons/icon-must-fill-star.svg";
import { trans } from "i18n/design";
import { CSSProperties, Ref, useEffect, useRef, useState } from "react";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { Pagination } from "antd";
import { PaginationProps } from "antd/lib/pagination/Pagination";
import { default as Pagination, PaginationProps } from "antd/es/pagination";
import styled, { css } from "styled-components";
import { ReactComponent as PackUpIcon } from "icons/icon-Pack-up.svg";

const packUpIconCss = css`
height: 24px;
width: 24px;

:hover:not([disabled]) {
&:hover:not([disabled]) {
g path {
fill: #315efb;
}
Expand Down
4 changes: 2 additions & 2 deletions client/packages/lowcoder-design/src/components/toolTip.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, Tooltip as AntdTooltip } from "antd";
import { TooltipProps } from "antd/lib/tooltip";
import { default as Button } from "antd/es/button";
import { default as AntdTooltip, TooltipProps } from "antd/es/tooltip";
import { CSSProperties, ReactNode } from "react";
import styled, { css } from "styled-components";
import { labelCss } from "components/Label";
Expand Down
3 changes: 2 additions & 1 deletion client/packages/lowcoder/src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { App, ConfigProvider } from "antd";
import { default as App } from "antd/es/app";
import { default as ConfigProvider } from "antd/es/config-provider";
import {
ALL_APPLICATIONS_URL,
APP_EDITOR_URL,
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder/src/components/InputList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Form } from "antd";
import { default as Form } from "antd/es/form";
import { FormListProps, Rule } from "antd/lib/form";
import { TacoButton } from "lowcoder-design";
import { Input } from "lowcoder-design";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder/src/components/JSLibraryModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { trans } from "i18n";
import { DocLink } from "components/ExternalLink";
import { Input } from "components/Input";
import { TacoButton } from "components/button";
import { Spin } from "antd";
import { default as Spin } from "antd/es/spin";
import { useDispatch, useSelector } from "react-redux";
import { recommendJSLibrarySelector } from "redux/selectors/jsLibrarySelector";
import { JSLibraryInfo, JSLibraryLabel } from "components/JSLibraryTree";
Expand Down
4 changes: 2 additions & 2 deletions client/packages/lowcoder/src/components/JSLibraryTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useDispatch, useSelector } from "react-redux";
import { parseJSLibraryURL } from "util/jsLibraryUtils";
import { jsLibrarySelector } from "redux/selectors/jsLibrarySelector";
import { fetchJSLibraryMetasAction } from "redux/reduxActions/jsLibraryActions";
import { Typography } from "antd";
import { default as TypographyParagraph } from "antd/es/typography/Paragraph";

const InfoWrapper = styled.div`
color: #8b8fa3;
Expand All @@ -30,7 +30,7 @@ const ExportWrapper = styled.div`
height: 20px;
line-height: 20px;
`;
const DescWrapper = styled(Typography.Paragraph)`
const DescWrapper = styled(TypographyParagraph)`
line-height: 1.5em;
font-size: 13px;
color: #8b8fa3;
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder/src/components/LazyRoute.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Skeleton } from "antd";
import { default as Skeleton } from "antd/es/skeleton";
import { ComponentType, lazy, Suspense, useRef } from "react";
import { Route, RouteProps } from "react-router";
import PageSkeleton from "./PageSkeleton";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder/src/components/ModuleLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Spin } from "antd";
import { default as Spin } from "antd/es/spin";
import { GreyTextColor } from "constants/style";
import styled from "styled-components";

Expand Down
3 changes: 2 additions & 1 deletion client/packages/lowcoder/src/components/PageSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Layout, Skeleton } from "antd";
import { default as Layout } from "antd/es/layout";
import { default as Skeleton } from "antd/es/skeleton";
import MainContent from "components/layout/MainContent";
import SideBar from "components/layout/SideBar";
import Header from "./layout/Header";
Expand Down
Loading