Skip to content

Conversation

zephraph
Copy link
Contributor

@zephraph zephraph commented Feb 1, 2023

image

@vercel
Copy link

vercel bot commented Feb 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
console-ui-storybook ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 1, 2023 at 3:50PM (UTC)

@zephraph
Copy link
Contributor Author

zephraph commented Feb 1, 2023

Lots to follow up on here, but we'll get to it.

@zephraph zephraph merged commit 205539e into main Feb 1, 2023
@zephraph zephraph deleted the update-inventory-layout branch February 1, 2023 15:56
<Column id="slot" accessor={(_, index) => index} header="slot" />
<Column id="sled" accessor={() => `SLD0`} header="sled" />
<Column id="location" accessor={(_, index) => `N${index}`} header="location" />
<Column id="status" accessor={() => 'active'} header="status" cell={LabelCell} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

dang, what are these function accessors?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mostly just placeholders for now.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, I didn't get it — if you give it a function, the return value is the value for the column. I thought the functions were somehow producing an accessor key, which in hindsight makes no sense.

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.

2 participants