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+
23import { useGlobalStore } from '@/store/global' ;
34import { PanelKey } from '@/types/config' ;
45
6+ const DancePanel = dynamic ( ( ) => import ( '@/panels/DancePanel' ) ) ;
7+ const MarketPanel = dynamic ( ( ) => import ( '@/panels/MarketPanel' ) ) ;
8+
59export const apps = [
610 {
711 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' ;
22import { Empty } from 'antd' ;
33import { createStyles } from 'antd-style' ;
44import classNames from 'classnames' ;
@@ -66,7 +66,17 @@ const DanceList = (props: PlayListProps) => {
6666 return < DanceItem danceItem = { item } key = { item . danceId } /> ;
6767 } ) }
6868 { 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 >
7080 ) : null }
7181 </ Flexbox >
7282 </ Flexbox >
You can’t perform that action at this time.
0 commit comments