update and added

master
mahdi andalib 3 years ago
parent 17200c9c47
commit 00fe98b11d
  1. 10
      src/components/ReactTable4/BasicTable.js
  2. 2
      src/components/ReactTable4/columns.js
  3. 2
      src/components/ReactTable4/index.js

@ -9,7 +9,7 @@ import { ColumnSearch } from "./ColumnSearch";
import { GlobalFilter } from "./GlobalFilter"; import { GlobalFilter } from "./GlobalFilter";
import { ToggleColumns } from "./ToggleColumns"; import { ToggleColumns } from "./ToggleColumns";
import { COLUMNS } from "./columns"; import { COLUMNS } from "./COLUMNS";
import { Pagination } from "./Pagination"; import { Pagination } from "./Pagination";
import { GoToPage } from "./GoToPage"; import { GoToPage } from "./GoToPage";
import { Settings } from "./Settings"; import { Settings } from "./Settings";
@ -105,13 +105,14 @@ const BasicTable = ({
); );
const { globalFilter, pageIndex, pageSize } = state; const { globalFilter, pageIndex, pageSize } = state;
return ( return (
<> <>
{/* toggle columns */} {/* toggle columns */}
<ToggleColumns {/* <ToggleColumns
allColumns={allColumns} allColumns={allColumns}
getToggleHideAllColumnsProps={getToggleHideAllColumnsProps} getToggleHideAllColumnsProps={getToggleHideAllColumnsProps}
/> /> */}
<div className="flex flex-row items-center justify-between"> <div className="flex flex-row items-center justify-between">
{/* right box */} {/* right box */}
<div className="flex-1"> <div className="flex-1">
@ -125,7 +126,7 @@ const BasicTable = ({
{/* left box */} {/* left box */}
{activeTab == 0 ? ( {activeTab == 0 ? (
<div <div
className="p-2 flex flex-row items-center justify-end rounded-tl rounded-tr" className="p-2 flex flex-row items-center rounded-tl rounded-tr"
style={{ backgroundColor: "#F1F6FF" }} style={{ backgroundColor: "#F1F6FF" }}
> >
{/* search box */} {/* search box */}
@ -161,6 +162,7 @@ const BasicTable = ({
</div> </div>
) : null} ) : null}
</div> </div>
{/* table */}
{activeTab == 0 ? ( {activeTab == 0 ? (
<> <>
<table <table

@ -1,7 +1,5 @@
import { format } from "date-fns"; import { format } from "date-fns";
import Table from "./BasicTable";
import { OrderStatus } from "./OrderStatus"; import { OrderStatus } from "./OrderStatus";
import { OrderLevel } from "./OrderLevel"; import { OrderLevel } from "./OrderLevel";
import { Buttons } from "./Buttons"; import { Buttons } from "./Buttons";

@ -127,7 +127,7 @@ export function Tabbar({ tabs, delTab, setActivateTab, activeTab }) {
{el.id ? ( {el.id ? (
<img <img
src={cancleIcon} src={cancleIcon}
className="w-2 h-2 mr-2" className="w-2 mr-3"
alt="" alt=""
onClick={(e) => { onClick={(e) => {
e.preventDefault(); e.preventDefault();

Loading…
Cancel
Save