chore: tidy up some smaller parts of the modal to align with the ADR
This commit is contained in:
@@ -31,9 +31,9 @@ import ExpandLessIcon from '@material-ui/icons/ExpandLess';
|
||||
import cn from 'classnames';
|
||||
import moment from 'moment';
|
||||
import React, { Suspense, useEffect, useState } from 'react';
|
||||
import { LogModal } from './LogModal';
|
||||
import { Job } from '../../types';
|
||||
|
||||
const LogModal = React.lazy(() => import('./LogModal'));
|
||||
const LazyLog = React.lazy(() => import('react-lazylog/build/LazyLog'));
|
||||
moment.relativeTimeThreshold('ss', 0);
|
||||
|
||||
|
||||
@@ -46,15 +46,7 @@ const useStyles = makeStyles(theme => ({
|
||||
},
|
||||
}));
|
||||
|
||||
export const LogModal = ({
|
||||
log,
|
||||
open = false,
|
||||
onClose,
|
||||
}: {
|
||||
log: string[];
|
||||
open: boolean;
|
||||
onClose: () => void;
|
||||
}) => {
|
||||
export const LogModal = ({ log, open = false, onClose }: Props) => {
|
||||
const classes = useStyles();
|
||||
|
||||
return (
|
||||
@@ -73,4 +65,3 @@ export const LogModal = ({
|
||||
</Dialog>
|
||||
);
|
||||
};
|
||||
export default LogModal;
|
||||
|
||||
Reference in New Issue
Block a user