|
|
|
@ -2,6 +2,8 @@ import React, { useRef } from "react"; |
|
|
|
|
import BasicTable from "./BasicTable"; |
|
|
|
|
// import useDraggableScroll from "use-draggable-scroll";
|
|
|
|
|
|
|
|
|
|
import cancleIcon from "./zarbedar-icon.svg"; |
|
|
|
|
|
|
|
|
|
const ReactTable4 = ({ breadCrumbs, subTitle, title }) => { |
|
|
|
|
return ( |
|
|
|
|
<div className="my-10 w-11/12 mx-auto"> |
|
|
|
@ -90,7 +92,7 @@ export function Tabbar({}) { |
|
|
|
|
]; |
|
|
|
|
return ( |
|
|
|
|
<ul |
|
|
|
|
className="tabbar flex no-scrollbar border-b border-gray-200 dark:border-gray-700 overflow-x-scroll scrolling-touch" |
|
|
|
|
className="tabbar flex no-scrollbar overflow-x-scroll scrolling-touch" |
|
|
|
|
onMouseDown={(e) => { |
|
|
|
|
const slider = window.document.querySelector(".tabbar"); |
|
|
|
|
window.isDown = true; |
|
|
|
@ -113,19 +115,16 @@ export function Tabbar({}) { |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
{tabs.map((el) => ( |
|
|
|
|
<li className="mr-2 "> |
|
|
|
|
<span |
|
|
|
|
<li |
|
|
|
|
onClick={(e) => { |
|
|
|
|
if (window.isDown) return e.preventDefault(); |
|
|
|
|
///do here
|
|
|
|
|
}} |
|
|
|
|
aria-current="page" |
|
|
|
|
className="inline-block py-4 px-4 text-sm font-medium text-center text-blue-600 bg-gray-100 rounded-t-lg active dark:bg-gray-800 dark:text-blue-500" |
|
|
|
|
className="flex flex-row items-center text-sm text-center active px-2 py-1 rounded-sm mx-1" |
|
|
|
|
style={{ backgroundColor: "#F1F6FF" }} |
|
|
|
|
> |
|
|
|
|
<span className="p-2"> |
|
|
|
|
{el} <span className="p-2">x</span> |
|
|
|
|
</span> |
|
|
|
|
</span> |
|
|
|
|
<span className="">{el}</span> |
|
|
|
|
<img src={cancleIcon} className="w-2 h-2 mx-2" /> |
|
|
|
|
</li> |
|
|
|
|
))} |
|
|
|
|
</ul> |
|
|
|
|