Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 36 additions & 4 deletions example/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import {
ProgressBar,
ComplexComponent,
PortfolioHome,
Table,
TeamMembers,
GroceryList



GroceryList,
} from 'dezenix-react'
import Home from './components/Home'
import { HashRouter, Route, Routes } from 'react-router-dom'
Expand All @@ -22,6 +20,36 @@ import {members} from "./data/members.json"


const App = () => {
let headers = ["Id","Name", "Email", "Password", "Mobile"];
let bodys = [
{ Id: "1",
Name: "disha",
Email: "disha@gmail.com",
Password: "disha",
Mobile: "9810XXXXXX",
},
{
Id: "2",
Name: "disha",
Email: "disha@gmail.com",
Password: "disha",
Mobile: "9810XXXXXX",
},
{
Id: "3",
Name: "disha",
Email: "disha@gmail.com",
Password: "disha",
Mobile: "9810XXXXXX",
},
{
Id: "4",
Name: "disha",
Email: "disha@gmail.com",
Password: "disha",
Mobile: "9810XXXXXX",
},
];
return (
<HashRouter>
<Routes>
Expand All @@ -32,6 +60,10 @@ const App = () => {
path='/progress_bar'
element={<ProgressBar bgcolor='red' progress='60' height={30} />}
/>
<Route
path='/table'
element={<Table header={headers} body={bodys} key={bodys.Id} /> }
/>
<Route
path='/product_card'
element={
Expand Down
3 changes: 3 additions & 0 deletions example/src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const Home = () => {
<Link to='/progress_bar' className='component'>
<h2>Progress Bar</h2>
</Link>
<Link to='/table' className='component'>
<h2>Table</h2>
</Link>
<Link to='/complex' className='component'>
<h2>Complex component example</h2>
</Link>
Expand Down
Loading