Skip to content
Discussion options

You must be logged in to vote

@lilfrootyloops the problem is the Cell func is in an object by its self when it does in fact need a header and accessor prop as well. The accessor is used as the id if I am not mistaken.

If you moved that Cell func into the lastName object the lastName value would be just that one emoji.

With that being said that does not really solve your problem. Perhaps you wanted a status column that took in props of yes, no, and maybe which you wanted to resolve as a ✅ , ❌ , and ❓.

The first thing I would do is make a component that accepts those three enums and returns one of those emojis per enum.

Something like this:

export const StatusEmojis = ({ status }: { status: 'yes' | 'no' | 'maybe' }) => …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@JoseSNubimetrics
Comment options

Comment options

You must be logged in to vote
3 replies
@JoseSNubimetrics
Comment options

@LinnJS
Comment options

@lilfrootyloops
Comment options

Answer selected by lilfrootyloops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants