@@ -34,41 +34,39 @@ export const Tabs = (props: TabsProps) => {
3434 return (
3535 < div
3636 className = { classNames (
37- "bg-custom-white flex items-center border-b border-gray-200" ,
37+ "bg-custom-white flex items-center border-b border-gray-200 px-2 " ,
3838 className
3939 ) }
4040 >
4141 < div className = "flex-1" >
42- < div className = "" >
43- < nav className = "-mb-px flex space-x-8 px-4" aria-label = "Tabs" >
44- { tabs . map ( ( tab : Tab , index : number ) => {
45- const Component = tab . component ? tab . component : ( ) => null ;
42+ < nav className = "-mb-px flex space-x-8 px-4" aria-label = "Tabs" >
43+ { tabs . map ( ( tab : Tab , index : number ) => {
44+ const Component = tab . component ? tab . component : ( ) => null ;
4645
47- return (
48- < div
49- key = { tab . name }
50- onClick = { ( ) => handleClick ( tab , index ) }
51- className = { classNames (
52- "flex items-center whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium cursor-pointer" ,
53- ( qspTab && qspTab === tab . name ) || ( ! qspTab && index === 0 ) // First item is active without QSP
54- ? "border-custom-blue-500 text-custom-blue-600"
55- : "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700"
56- ) }
57- >
58- { tab . label }
46+ return (
47+ < div
48+ key = { tab . name }
49+ onClick = { ( ) => handleClick ( tab , index ) }
50+ className = { classNames (
51+ "flex items-center whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium cursor-pointer" ,
52+ ( qspTab && qspTab === tab . name ) || ( ! qspTab && index === 0 ) // First item is active without QSP
53+ ? "border-custom-blue-500 text-custom-blue-600"
54+ : "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700"
55+ ) }
56+ >
57+ { tab . label }
5958
60- { tab . count !== undefined && (
61- < Pill className = "ml-2" data-cy = "tab-counter" >
62- { JSON . stringify ( tab . count ) }
63- </ Pill >
64- ) }
59+ { tab . count !== undefined && (
60+ < Pill className = "ml-2" data-cy = "tab-counter" >
61+ { JSON . stringify ( tab . count ) }
62+ </ Pill >
63+ ) }
6564
66- < Component />
67- </ div >
68- ) ;
69- } ) }
70- </ nav >
71- </ div >
65+ < Component />
66+ </ div >
67+ ) ;
68+ } ) }
69+ </ nav >
7270 </ div >
7371 < div > { rightItems } </ div >
7472 </ div >
0 commit comments