@@ -35,6 +35,7 @@ import { isFetchingFolderElements } from "../../redux/selectors/folderSelector";
35
35
import { checkIsMobile } from "util/commonUtils" ;
36
36
import { default as Divider } from "antd/es/divider" ;
37
37
import { ApplicationCategoriesEnum } from "constants/applicationConstants" ;
38
+ import { Pagination } from 'antd' ;
38
39
39
40
const Wrapper = styled . div `
40
41
display: flex;
@@ -199,6 +200,12 @@ const EmptyView = styled.div`
199
200
}
200
201
}
201
202
` ;
203
+ const PaginationLayout = styled . div `
204
+ display: flex;
205
+ justify-content: center;
206
+ margin-top: 40px;
207
+ margin-bottom: 20px;
208
+ `
202
209
203
210
const LayoutSwitcher = styled . div `
204
211
position: absolute;
@@ -307,6 +314,8 @@ export function HomeLayout(props: HomeLayoutProps) {
307
314
308
315
const { breadcrumb = [ ] , elements = [ ] , localMarketplaceApps = [ ] , globalMarketplaceApps = [ ] , mode } = props ;
309
316
317
+ console . log ( "folder" , elements ) ;
318
+
310
319
const categoryOptions = [
311
320
{ label : < FilterMenuItem > { trans ( "home.allCategories" ) } </ FilterMenuItem > , value : 'All' } ,
312
321
...Object . entries ( ApplicationCategoriesEnum ) . map ( ( [ key , value ] ) => ( {
@@ -325,6 +334,7 @@ export function HomeLayout(props: HomeLayoutProps) {
325
334
const [ typeFilter , setTypeFilter ] = useState < HomeResKey > ( "All" ) ;
326
335
const [ categoryFilter , setCategoryFilter ] = useState < ApplicationCategoriesEnum | "All" > ( "All" ) ;
327
336
const [ searchValue , setSearchValue ] = useState ( "" ) ;
337
+ const [ visibility , setVisibility ] = useState ( true ) ;
328
338
const [ layout , setLayout ] = useState < HomeLayoutType > (
329
339
checkIsMobile ( window . innerWidth ) ? "card" : getHomeLayout ( )
330
340
) ;
@@ -415,6 +425,8 @@ export function HomeLayout(props: HomeLayoutProps) {
415
425
}
416
426
) ;
417
427
428
+ console . log ( resList ) ;
429
+
418
430
const getFilterMenuItem = ( type : HomeResTypeEnum ) => {
419
431
const Icon = HomeResInfo [ type ] . icon ;
420
432
return {
@@ -603,7 +615,12 @@ export function HomeLayout(props: HomeLayoutProps) {
603
615
</ >
604
616
) }
605
617
</ ContentWrapper >
606
-
618
+ { visibility ? < div >
619
+ < Divider />
620
+ < PaginationLayout >
621
+ < Pagination total = { 50 } showSizeChanger />
622
+ </ PaginationLayout >
623
+ </ div > : null }
607
624
</ Card >
608
625
609
626
</ HomeView >
0 commit comments