Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CryptoMetrics_L02_GRP15
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
L02_GRP15
CryptoMetrics_L02_GRP15
Commits
f4e93160
Commit
f4e93160
authored
3 years ago
by
Aggarwal Himanshu
Browse files
Options
Downloads
Patches
Plain Diff
Add modular Table component
parent
7fd2a20e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!7
Merge develop to main
,
!6
Add a Table View for Cryptocurrencies
,
!4
Improve Table UI and make it more modular
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cryptometrics/components/table/Table.js
+32
-0
32 additions, 0 deletions
src/cryptometrics/components/table/Table.js
with
32 additions
and
0 deletions
src/cryptometrics/components/table/Table.js
0 → 100644
+
32
−
0
View file @
f4e93160
import
classNames
from
"
classnames
"
;
import
React
from
"
react
"
;
export
function
Table
({
children
,
className
})
{
return
<
table
className
=
{
classNames
(
"
w-full
"
,
className
)}
>
{
children
}
<
/table>
;
}
export
function
TableRow
({
children
,
className
})
{
return
(
<
tr
className
=
{
classNames
(
"
w-full flex justify-between dark:bg-dark-600 my-4 mx-2 px-6 rounded-2xl cursor-pointer text-slate-900 dark:text-white hover:dark:bg-slate-900
"
,
className
)}
>
{
children
}
<
/tr
>
);
}
export
function
TableCell
({
children
,
className
})
{
return
(
<
td
className
=
{
classNames
(
"
flex flex-col justify-center items-center align-middle h-20 px-4 font-semibold
"
,
className
)}
>
{
children
}
<
/td
>
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment