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

Convert more tables to useQueryTable2 #2111

Merged
merged 7 commits into from
Mar 29, 2024
Merged

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Mar 29, 2024

These diffs will be a lot nicer to read with whitespace changes hidden.

https://github.com/oxidecomputer/console/pull/2111/files?w=1

Copy link

vercel bot commented Mar 29, 2024

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

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Mar 29, 2024 8:57pm


export const defaultCell = <T, U extends React.ReactNode>(props: CellContext<T, U>) => (
<span className="text-secondary">{props.getValue()}</span>
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Turns out we don't need this. Worth keeping an eye out for situations where it behaves differently because it's not in a span, but that seems pretty unlikely.

& th,
& td {
min-width: fit-content;
white-space: nowrap;
@apply text-secondary;
}

@david-crespo david-crespo marked this pull request as ready for review March 29, 2024 20:57
@david-crespo david-crespo enabled auto-merge (squash) March 29, 2024 20:57
@david-crespo david-crespo merged commit 4db8d83 into main Mar 29, 2024
8 checks passed
@david-crespo david-crespo deleted the convert-more-tables branch March 29, 2024 21:06
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