-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
161 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
judo-ui-react/src/main/resources/actor/src/components/table/table-editor.tsx.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { styled } from '@mui/material/styles'; | ||
import Tooltip, { tooltipClasses, type TooltipProps } from '@mui/material/Tooltip'; | ||
import { | ||
GridEditInputCell, | ||
type GridRenderEditCellParams, | ||
} from '@mui/x-data-grid{{ getMUIDataGridPlanSuffix }}'; | ||
|
||
const StyledTooltip = styled(({ className, ...props }: TooltipProps) => ( | ||
<Tooltip {...props} classes={ { popper: className } } /> | ||
))(({ theme }) => ({ | ||
[`& .${tooltipClasses.tooltip}`]: { | ||
backgroundColor: theme.palette.error.main, | ||
color: theme.palette.error.contrastText, | ||
}, | ||
})); | ||
|
||
export function NameEditInputCell(props: GridRenderEditCellParams & { error?: string }) { | ||
const { error } = props; | ||
|
||
return ( | ||
<StyledTooltip open={!!error} title={error}> | ||
<GridEditInputCell {...props} /> | ||
</StyledTooltip> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.