Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 🎸 Add Cexes Comparison Section #429

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Malayvasa
Copy link
Contributor

Related to #382

export const Cex = ({ boxes, boxColor, name, message }: CEX) => (
<div className={css.cex}>
<div className={css.cexGrid}>
{[...Array(boxes)].map((_, index) => (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: to save the spread, we can instantiate the array with the length of boxes, e.g.

Suggested change
{[...Array(boxes)].map((_, index) => (
{Array.from({ length: boxes },.map((_, index) => (

Comment on lines 12 to 32
const textMotionProps = {
initial: { opacity: 0, y: -10 },
whileInView: { opacity: 1, y: 0 },
viewport: { once: true },
transition: {
type: 'spring',
stiffness: 260,
damping: 20,
},
}

const gridMotionProps = {
initial: { scale: 0, x: -10 },
whileInView: { scale: 1, x: 0 },
viewport: { once: true },
transition: {
type: 'spring',
stiffness: 260,
damping: 20,
},
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I'd add the type to these from motion.div for safety.

@Malayvasa Malayvasa requested a review from iamacook August 1, 2024 11:20
@Malayvasa Malayvasa changed the base branch from malay-branch-1 to main August 2, 2024 15:15
Copy link
Member

@DiogoSoaress DiogoSoaress left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename the folder -> AssetsSecured

@@ -49,6 +49,32 @@
"href": "https://dune.com/queries/3737066"
}
},
{
"component": "DataRoom/Cexes",
"label": "CEX",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use caption here

@DiogoSoaress
Copy link
Member

Why aren't you fetching the values dynamically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants