master
mahdi andalib 3 years ago
parent ea922f5eb3
commit fca4cb9607
  1. 2
      src/App.js
  2. 4
      src/components/ReactTable3/BasicTable.js
  3. 2
      src/components/ReactTable3/GlobalFilter.js
  4. 1
      src/components/ReactTable3/columns.js
  5. 3
      src/components/ReactTable3/filter.svg
  6. 3
      src/components/ReactTable3/plus.svg
  7. 14
      src/components/ReactTable3/settings.svg

@ -82,7 +82,7 @@ function App() {
{/* <AdvertisementDesign3 /> */} {/* <AdvertisementDesign3 /> */}
{/* <CourseChapter /> */} {/* <CourseChapter /> */}
{/* <SidebarMenu /> */} {/* <SidebarMenu /> */}
<SidebarDesign2 /> {/* <SidebarDesign2 /> */}
{/* <SimpleBarChart /> */} {/* <SimpleBarChart /> */}
{/* <SpecifiedDomainRadarChart /> */} {/* <SpecifiedDomainRadarChart /> */}
{/* <Design1 /> */} {/* <Design1 /> */}

@ -12,14 +12,12 @@ import {
} from "react-table"; } from "react-table";
import { COLUMNS } from "./columns"; import { COLUMNS } from "./columns";
import { GlobalFilter } from "./GlobalFilter"; import { GlobalFilter } from "./GlobalFilter";
import { Checkbox } from "./Checkbox"; import { Checkbox } from "./Checkbox";
import MOCK_DATA from "./MOCK_DATA.json"; import MOCK_DATA from "./MOCK_DATA.json";
const BasicTable = () => { const BasicTable = () => {
const columns = React.useMemo(() => COLUMNS, []); const columns = React.useMemo(() => COLUMNS, []);
const data = useMemo(() => MOCK_DATA, []); const data = useMemo(() => MOCK_DATA, []);

@ -15,8 +15,6 @@ export const GlobalFilter = ({ filter, setFilter }) => {
جستجو: جستجو:
{/* <input value={filter || '' } onChange={(e) => setFilter(e.target.value)} /> */}
<input <input
value={value || ''} value={value || ''}
onChange={(e) => { onChange={(e) => {

@ -57,5 +57,6 @@ export const COLUMNS = [
Footer: "ویرایش", Footer: "ویرایش",
accessor: "edit", accessor: "edit",
Cell: Buttons, Cell: Buttons,
disableSortBy: true,
}, },
]; ];

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="19.631" height="22.407" viewBox="0 0 19.631 22.407">
<path id="Vector" d="M2.105,0h13.92a2.107,2.107,0,0,1,2.105,2.105V4.428A3.933,3.933,0,0,1,17.078,6.86L13.613,9.924l-1.072.947A3.417,3.417,0,0,0,11.488,13.3v4.537a2.367,2.367,0,0,1-.944,1.8l-1.47.926a2.145,2.145,0,0,1-3.267-1.8v-5.59a3.962,3.962,0,0,0-.853-2.214L.944,6.733A3.43,3.43,0,0,1,0,4.628V2.214A2.133,2.133,0,0,1,2.105,0Z" transform="translate(0.75 0.75)" fill="none" stroke="#65a9ff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
</svg>

After

Width:  |  Height:  |  Size: 570 B

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="2" height="11.72" viewBox="0 0 2 11.72">
<path id="Vector" d="M0,9.72V0" transform="translate(1 1)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
</svg>

After

Width:  |  Height:  |  Size: 248 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.7 KiB

Loading…
Cancel
Save