Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
burnettk committed Feb 6, 2025
1 parent 7c6e6fa commit 2e7015b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ import Button from '@mui/material/Button';
import IconButton from '@mui/material/IconButton';
import Snackbar from '@mui/material/Snackbar';
import Alert from '@mui/material/Alert';
import { ObjectWithStringKeysAndValues } from '../interfaces';
import { SnackbarCloseReason } from '@mui/material';
import { ObjectWithStringKeysAndValues } from '../interfaces';

type OwnProps = {
title: string;
children?: React.ReactNode;
onClose?: (event: Event | React.SyntheticEvent<any, Event>, reason: SnackbarCloseReason) => void;
onClose?: (
event: Event | React.SyntheticEvent<any, Event>,
reason: SnackbarCloseReason,
) => void;
type?: 'success' | 'error' | 'warning';
hideCloseButton?: boolean;
allowTogglingFullMessage?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,19 @@ export default function PaginationForTable({
event: MouseEvent<HTMLButtonElement> | null,
newPage: number,
) => {
searchParams.set(`${paginationQueryParamPrefixToUse}page`, String(newPage + 1));
searchParams.set(
`${paginationQueryParamPrefixToUse}page`,
String(newPage + 1),
);
setSearchParams(searchParams);
};

const handleChangeRowsPerPage = (event: ChangeEvent<HTMLInputElement>) => {
const newPerPage = parseInt(event.target.value, 10);
searchParams.set(`${paginationQueryParamPrefixToUse}per_page`, String(newPerPage));
searchParams.set(
`${paginationQueryParamPrefixToUse}per_page`,
String(newPerPage),
);
setSearchParams(searchParams);
};

Expand Down
3 changes: 1 addition & 2 deletions spiffworkflow-frontend/src/a-spiffui-v3/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ const { port, hostname } = window.location;
let protocol = 'https';

declare global {
interface SpiffworkflowFrontendJsenvObject {
}
interface SpiffworkflowFrontendJsenvObject {}
interface Window {
spiffworkflowFrontendJsenv: SpiffworkflowFrontendJsenvObject;
}
Expand Down

0 comments on commit 2e7015b

Please sign in to comment.