Skip to content

Commit fde1bac

Browse files
committed
Added rightpanel skeleton
1 parent 0ad48c4 commit fde1bac

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

client/packages/lowcoder/src/pages/editor/right/RightPanel.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import PropertyView from "./PropertyView";
44
import InsertView from "./InsertView";
55
import type UIComp from "comps/comps/uiComp";
66
import type { UiLayoutType } from "comps/comps/uiComp";
7-
import { useEffect, useState } from "react";
7+
import {Suspense, useEffect, useState} from "react";
88
import { trans } from "i18n";
99
import { isAggregationApp } from "util/appUtils";
1010
import React from "react";
1111
import {MultiIconDisplay} from "@lowcoder-ee/comps/comps/multiIconDisplay";
12+
import {Skeleton} from "antd";
1213

1314
type RightPanelProps = {
1415
onTabChange: (key: string) => void;
@@ -45,13 +46,15 @@ function RightPanel(props: RightPanelProps) {
4546

4647
return (
4748
<RightPanelWrapper className="cypress-right-content">
48-
<Tabs
49-
onChange={(key) => {
50-
onTabChange(key);
51-
}}
52-
tabsConfig={tabConfigs}
53-
activeKey={activeKey}
54-
/>
49+
<Suspense fallback={<Skeleton></Skeleton>}>
50+
<Tabs
51+
onChange={(key) => {
52+
onTabChange(key);
53+
}}
54+
tabsConfig={tabConfigs}
55+
activeKey={activeKey}
56+
/>
57+
</Suspense>
5558
</RightPanelWrapper>
5659
);
5760
}

0 commit comments

Comments
 (0)