Skip to content

Commit

Permalink
fixed import on React
Browse files Browse the repository at this point in the history
Signed-off-by: Antonette Caldwell <[email protected]>
  • Loading branch information
nebula-aac committed Sep 10, 2023
1 parent ff1041e commit 213ac44
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/base/Button/button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button as MuiButton, type ButtonProps } from '@mui/material';
import * as React from 'react';
import React from 'react';

export function Button(props: ButtonProps) {
return <MuiButton {...props} />;
Expand Down
11 changes: 8 additions & 3 deletions packages/components/src/custom/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ interface SearchBarProps {
endAdornment?: ReactNode;
}

const SearchBar: FC<SearchBarProps> = (
{ onChange, value, width, label, endAdornment, ...props }
) => {
const SearchBar: FC<SearchBarProps> = ({
onChange,
value,
width,
label,
endAdornment,
...props
}) => {
return (
<Fragment>
<Box
Expand Down
10 changes: 7 additions & 3 deletions packages/components/src/custom/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ type TooltipProps = {
children: ReactElement<any, any>;
} & Omit<MuiTooltipProps, 'title' | 'children' | 'onClick'>;

export const MesheryTooltip: FC<TooltipProps> = (
{ title, onClick, placement, children, ...props }
) => {
export const MesheryTooltip: FC<TooltipProps> = ({
title,
onClick,
placement,
children,
...props
}) => {
return (
<Tooltip title={title} placement={placement} onClick={onClick} arrow {...props}>
{children}
Expand Down

0 comments on commit 213ac44

Please sign in to comment.