Skip to content

Commit 8d88734

Browse files
committed
fixup! Run prettier
1 parent 2b1be87 commit 8d88734

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

site/src/components/Dialog/Dialog.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ export interface DialogTitleProps {
2222
/**
2323
* Override of Material UI's DialogTitle that allows for a supertitle and background icon
2424
*/
25-
export const DialogTitle: React.FC<React.PropsWithChildren<DialogTitleProps>> = ({
26-
title,
27-
icon: Icon,
28-
superTitle,
29-
}) => {
25+
export const DialogTitle: React.FC<DialogTitleProps> = ({ title, icon: Icon, superTitle }) => {
3026
const styles = useTitleStyles()
3127
return (
3228
<MuiDialogTitle disableTypography>
@@ -96,7 +92,7 @@ const typeToColor = (type: ConfirmDialogType): LoadingButtonProps["color"] => {
9692
/**
9793
* Quickly handles most modals actions, some combination of a cancel and confirm button
9894
*/
99-
export const DialogActionButtons: React.FC<React.PropsWithChildren<DialogActionButtonsProps>> = ({
95+
export const DialogActionButtons: React.FC<DialogActionButtonsProps> = ({
10096
cancelText = "Cancel",
10197
confirmText = "Confirm",
10298
confirmLoading = false,
@@ -313,7 +309,7 @@ export type DialogSearchProps = Omit<
313309
* Formats a search bar right below the title of a Dialog. Passes all props
314310
* through to the Material UI OutlinedInput component contained within.
315311
*/
316-
export const DialogSearch: React.FC<React.PropsWithChildren<DialogSearchProps>> = (props) => {
312+
export const DialogSearch: React.FC<DialogSearchProps> = (props) => {
317313
const styles = useSearchStyles()
318314
return (
319315
<div className={styles.root}>
@@ -360,7 +356,7 @@ export type DialogProps = MuiDialogProps
360356
*
361357
* See original component's Material UI documentation here: https://material-ui.com/components/dialogs/
362358
*/
363-
export const Dialog: React.FC<React.PropsWithChildren<DialogProps>> = (props) => {
359+
export const Dialog: React.FC<DialogProps> = (props) => {
364360
// Wrapped so we can add custom attributes below
365361
return <MuiDialog {...props} />
366362
}

site/src/components/ErrorBoundary/ErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component, ReactNode } from "react"
22
import { RuntimeErrorState } from "../RuntimeErrorState/RuntimeErrorState"
33

4-
type ErrorBoundaryProps = React.PropsWithChildren<>
4+
type ErrorBoundaryProps = React.PropsWithChildren<unknown>
55

66
interface ErrorBoundaryState {
77
error: Error | null

0 commit comments

Comments
 (0)