11import { useParams } from "react-router" ;
22import { useNavigate } from "react-router-dom" ;
33import { teamsData } from "./data" ;
4- import { ButtonGroup , Button , ChipList , ChipProps , Chip , FloatingActionButton } from "@progress/kendo-react-buttons" ;
5- import { Breadcrumb , StackLayout , Card , CardBody , Avatar , CardTitle , CardSubtitle , CardFooter , BreadcrumbLinkMouseEvent } from "@progress/kendo-react-layout" ;
6- import { groupIcon , listUnorderedSquareIcon , checkIcon , chevronRightIcon , homeIcon , detailSectionIcon , pencilIcon , plusIcon } from "@progress/kendo-svg-icons" ;
4+ import { ButtonGroup , Button , FloatingActionButton } from "@progress/kendo-react-buttons" ;
5+ import { Breadcrumb , Card , CardBody , Avatar , CardTitle , CardSubtitle , CardFooter , BreadcrumbLinkMouseEvent , GridLayout } from "@progress/kendo-react-layout" ;
6+ import { groupIcon , listUnorderedSquareIcon , homeIcon , detailSectionIcon , plusIcon } from "@progress/kendo-svg-icons" ;
77import { SvgIcon } from "@progress/kendo-react-common" ;
88import React from "react" ;
99
@@ -57,6 +57,10 @@ export default function Team() {
5757 return firstNameInitial + lastNameInitial ;
5858 }
5959
60+ const openDetailsWindow = ( ) => {
61+
62+ } ;
63+
6064 return (
6165 < >
6266 < div style = { { minHeight : 'calc(100vh - 106px)' } } className = "flex flex-col p-10 gap-6" >
@@ -76,7 +80,7 @@ export default function Team() {
7680 </ ButtonGroup >
7781 </ div >
7882
79- < StackLayout className = { `grid ${ isGridView ? 'grid-cols-2' : 'grid-cols-1' } ${ isGridView ? 'lg:grid-cols-4' : 'lg:grid-cols-1' } ` } orientation = "horizontal" style = { { gap : "var(--kendo-spacing-4) var(--kendo-spacing-6)" } } >
83+ < GridLayout className = { `${ isGridView ? 'grid-cols-2' : 'grid-cols-1' } ${ isGridView ? 'lg:grid-cols-4' : 'lg:grid-cols-1' } ` } orientation = "horizontal" style = { { gap : "var(--kendo-spacing-4) var(--kendo-spacing-6)" } } >
8084 { team . teamMembers . map ( ( member , index ) => {
8185 return < Card key = { index } >
8286 < CardBody className = "flex items-center" >
@@ -85,14 +89,13 @@ export default function Team() {
8589 < CardTitle className = "font-medium truncate" > { member . teamMember } </ CardTitle >
8690 < CardSubtitle className = "text-subtle m-0 truncate" > { member . title } </ CardSubtitle >
8791 </ div >
88- < Button svgIcon = { pencilIcon } fillMode = "flat" className = "ml-auto" />
8992 </ CardBody >
9093 < CardFooter className = "border-0 p-2" >
91- < Button svgIcon = { detailSectionIcon } fillMode = "flat" > Details</ Button >
94+ < Button svgIcon = { detailSectionIcon } fillMode = "flat" onClick = { openDetailsWindow } > Details</ Button >
9295 </ CardFooter >
9396 </ Card >
9497 } ) }
95- </ StackLayout >
98+ </ GridLayout >
9699
97100 < div className = "flex justify-end mt-auto" >
98101 < FloatingActionButton svgIcon = { plusIcon } text = "Add new member" size = "small" alignOffset = { { x : 40 , y : 75 } } />
0 commit comments