Skip to content

Commit

Permalink
frontend: component api fixes
Browse files Browse the repository at this point in the history
after new dep resolution, MUI got a minor version bumb
  • Loading branch information
ErvinRacz committed Dec 10, 2024
1 parent 45892bf commit 15de604
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Activity/ActivityContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ function Container() {
nextIconButtonProps={{
'aria-label': t('activity|next page'),
}}
onChangePage={handleChangePage}
onChangeRowsPerPage={handleChangeRowsPerPage}
onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage}
/>
</Grid>
</Grid>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Instances/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ function ListView(props: { application: Application; group: Group }) {
nextIconButtonProps={{
'aria-label': t('frequent|next page'),
}}
onChangePage={handleChangePage}
onChangeRowsPerPage={handleChangeRowsPerPage}
onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage}
/>
</React.Fragment>
) : (
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Packages/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function List(props: { appID: string }) {
nextIconButtonProps={{
'aria-label': t('frequent|next page'),
}}
onChangePage={handleChangePage}
onPageChange={handleChangePage}
/>
</React.Fragment>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core/DialogTitle';
import FormControl from '@material-ui/core/FormControl';
import Input from '@material-ui/core/Input';
import InputLabel from '@material-ui/core/InputLabel';
import InputLabel, { InputLabelProps } from '@material-ui/core/InputLabel';
import ListItem from '@material-ui/core/ListItem';
import { makeStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import Downshift, { GetLabelPropsOptions } from 'downshift';
import Downshift from 'downshift';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { FixedSizeList, ListOnItemsRenderedProps } from 'react-window';
Expand All @@ -25,11 +25,11 @@ interface RenderInputProps {
autoFocus: boolean;
label: string;
placeholder: string;
InputLabelProps: (options?: GetLabelPropsOptions | undefined) => void;
InputLabelProps: InputLabelProps;
InputProps: {
onBlur: () => void;
onChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
onFocus: () => void;
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
onChange?: React.ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
onFocus?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
};
inputProps: object;
variant: 'outlined';
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/common/SimpleTable/SimpleTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export default function SimpleTable(props: SimpleTableProps) {
nextIconButtonProps={{
'aria-label': t('frequent|next page'),
}}
onChangePage={handleChangePage}
onChangeRowsPerPage={handleChangeRowsPerPage}
onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage}
/>
)}
</React.Fragment>
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/common/TimezonePicker/TimezonePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core/DialogTitle';
import FormControl from '@material-ui/core/FormControl';
import Input from '@material-ui/core/Input';
import InputLabel from '@material-ui/core/InputLabel';
import InputLabel, { InputLabelProps } from '@material-ui/core/InputLabel';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import { makeStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import Downshift, { GetLabelPropsOptions } from 'downshift';
import Downshift from 'downshift';
import moment from 'moment-timezone';
import React from 'react';
import { useTranslation } from 'react-i18next';
Expand All @@ -30,15 +30,15 @@ interface RenderInputProps {
};
ref?: React.Ref<any>;
InputProps: {
onBlur: () => void;
onChange: () => void;
onFocus: () => void;
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
onChange?: React.FormEventHandler<HTMLInputElement | HTMLTextAreaElement>;
onFocus?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
};
fullWidth: boolean;
autoFocus: boolean;
label: string;
placeholder: string;
InputLabelProps: (options?: GetLabelPropsOptions | undefined) => void;
InputLabelProps: InputLabelProps;
variant: 'outlined';
inputProps: object;
}
Expand Down

0 comments on commit 15de604

Please sign in to comment.