Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marta- committed May 16, 2023
1 parent 10f9db3 commit 672f7f6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/appTheme.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
// specific language governing permissions and limitations
// under the License.
//
import { createTheme } from '@mui/material/styles';

function addAlpha(color, opacity) {
var _opacity = Math.round(Math.min(Math.max(opacity || 1, 0), 1) * 255);
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/PrintButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import ReactToPrint from 'react-to-print';
import { getAppTheme } from "../appTheme";

function PrintButton(props) {
const { title, content, trigger, buttonProps, ...rest } = props;
const { title, content, trigger, buttonProps } = props;

const ref = useRef(null);
const printTheme = useMemo(() => createTheme(getAppTheme()), []);
Expand Down
1 change: 0 additions & 1 deletion src/components/views/RecordViewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
ListItemText,
ListSubheader,
Stack,
Typography,
} from "@mui/material";

import ResponsiveDialog from "../utils/ResponsiveDialog";
Expand Down
3 changes: 1 addition & 2 deletions src/components/views/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@
// under the License.
//

import React, { useEffect, useState } from "react";
import React, { useState } from "react";

import {
GridToolbarContainer,
GridToolbarColumnsButton,
GridToolbarFilterButton,
GridToolbarExportContainer,
GridCsvExportMenuItem,
GridExportMenuItemProps,
useGridApiContext,
gridFilteredSortedRowIdsSelector,
gridVisibleColumnFieldsSelector,
Expand Down

0 comments on commit 672f7f6

Please sign in to comment.