Skip to content

Commit

Permalink
[docs] Fixes on featured image (#4561)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharatkashyap authored Jan 9, 2025
1 parent 6b5e8d7 commit 431822f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/static/toolpad/docs/core/functional-dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions examples/core/auth-nextjs-themed/app/mocks/gridOrdersData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ function renderSparklineCell(params: GridCellParams<SparkLineData, any>) {
}

function renderStatus(status: 'In Stock' | 'Out of Stock' | 'Low Stock') {
const colors: { [index: string]: 'success' | 'error' | 'warning' } = {
const colors: { [index: string]: 'success' | 'error' | 'default' } = {
'In Stock': 'success',
'Out of Stock': 'error',
'Low Stock': 'warning',
'Low Stock': 'default',
};

return <Chip label={status} color={colors[status]} size="small" />;
Expand Down

0 comments on commit 431822f

Please sign in to comment.