fix typing issues

This commit is contained in:
TzeYiing authored and Copple committed 2022-03-30 17:07:40 +02:00
1 parent c3585c82bd
commit dac1842d36
4 files changed
+10 -2

No files matched your search

@@ -11,6 +11,7 @@ import FunctionInvocationSelectionRender, {
FunctionInvocationHeaderRender,
} from './LogSelectionRenderers/FunctionInvocationSelectionRender'
import FunctionLogsSelectionRender from './LogSelectionRenderers/FunctionLogsSelectionRender'
import DefaultSelectionRenderer from './LogSelectionRenderers/DefaultSelectionRenderer'
interface Props {
log: LogData | null
@@ -28,6 +28,7 @@ interface Props {
isHistogramShowing?: boolean
isLoading?: boolean
error?: any
showDownload?: boolean
}
type LogMap = { [id: string]: LogData }
@@ -42,6 +43,7 @@ const LogTable = ({
onHistogramToggle,
isHistogramShowing,
isLoading,
showDownload,
error,
}: Props) => {
const [focusedLog, setFocusedLog] = useState<LogData | null>(null)
@@ -3,7 +3,6 @@ interface Metadata {
}
export type LogSearchCallback = (filters: { query: string; to?: string; from?: string; fromMicro?: number, toMicro?: number }) => void
export type LogSearchCallback = (filters: { query: string; to?: string; toMicro?: number }) => void
export interface LogsEndpointParams {
// project ref
project: string
@@ -45,8 +45,14 @@ interface Props {
projectRef: string
queryType: QueryType
override: Override
condensedLayout?: boolean
}
export const LogsPreviewer: React.FC<Props> = ({ projectRef, queryType, override }) => {
export const LogsPreviewer: React.FC<Props> = ({
projectRef,
queryType,
override,
condensedLayout = false,
}) => {
const router = useRouter()
const { s, te, ts } = router.query
const [showChart, setShowChart] = useState(true)