File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
- import { DancePanel , MarketPanel } from '@/panels' ;
1
+ import dynamic from 'next/dynamic' ;
2
+
2
3
import { useGlobalStore } from '@/store/global' ;
3
4
import { PanelKey } from '@/types/config' ;
4
5
6
+ const DancePanel = dynamic ( ( ) => import ( '@/panels/DancePanel' ) ) ;
7
+ const MarketPanel = dynamic ( ( ) => import ( '@/panels/MarketPanel' ) ) ;
8
+
5
9
export const apps = [
6
10
{
7
11
component : < DancePanel /> ,
Original file line number Diff line number Diff line change 1
- import { ActionIcon } from '@lobehub/ui' ;
1
+ import { ActionIcon , GradientButton } from '@lobehub/ui' ;
2
2
import { Empty } from 'antd' ;
3
3
import { createStyles } from 'antd-style' ;
4
4
import classNames from 'classnames' ;
@@ -66,7 +66,17 @@ const DanceList = (props: PlayListProps) => {
66
66
return < DanceItem danceItem = { item } key = { item . danceId } /> ;
67
67
} ) }
68
68
{ danceList . length === 0 ? (
69
- < Empty description = { t ( 'dance.noPlayList' ) } image = { Empty . PRESENTED_IMAGE_SIMPLE } > </ Empty >
69
+ < Empty description = { t ( 'dance.noPlayList' ) } image = { Empty . PRESENTED_IMAGE_SIMPLE } >
70
+ < GradientButton
71
+ glow
72
+ size = "middle"
73
+ onClick = { ( ) => {
74
+ openPanel ( 'dance' ) ;
75
+ } }
76
+ >
77
+ { t ( 'dance.musicAndDance' ) }
78
+ </ GradientButton >
79
+ </ Empty >
70
80
) : null }
71
81
</ Flexbox >
72
82
</ Flexbox >
You can’t perform that action at this time.
0 commit comments