Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8dd15bc

Browse files
committed
fixup! Run prettier
1 parent65b2735 commit8dd15bc

File tree

11 files changed

+16
-33
lines changed

11 files changed

+16
-33
lines changed

‎site/src/components/Resources/ResourceAvatar.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ const iconByResource: Record<string, typeof MemoryIcon> = {
2727

2828
exporttypeResourceAvatarProps={type:string}
2929

30-
exportconstResourceAvatar:React.FC<React.PropsWithChildren<ResourceAvatarProps>>=({
31-
type,
32-
})=>{
30+
exportconstResourceAvatar:React.FC<ResourceAvatarProps>=({ type})=>{
3331
// this resource can return undefined
3432
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
3533
constIconComponent=iconByResource[type]??HelpIcon

‎site/src/components/RuntimeErrorState/RuntimeErrorState.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ const ErrorStateDescription = ({ emailBody }: { emailBody?: string }) => {
6161
/**
6262
* An error UI that is displayed when our error boundary (ErrorBoundary.tsx) is triggered
6363
*/
64-
exportconstRuntimeErrorState:React.FC<React.PropsWithChildren<RuntimeErrorStateProps>>=({
65-
error,
66-
})=>{
64+
exportconstRuntimeErrorState:React.FC<RuntimeErrorStateProps>=({ error})=>{
6765
conststyles=useStyles()
6866
const[reportState,dispatch]=useReducer(reducer,{ error,mappedStack:null})
6967

‎site/src/components/SettingsSecurityForm/SettingsSecurityForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface SecurityFormProps {
4949
initialTouched?:FormikTouched<SecurityFormValues>
5050
}
5151

52-
exportconstSecurityForm:React.FC<React.PropsWithChildren<SecurityFormProps>>=({
52+
exportconstSecurityForm:React.FC<SecurityFormProps>=({
5353
isLoading,
5454
onSubmit,
5555
initialValues,

‎site/src/components/TemplateStats/TemplateStats.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ export interface TemplateStatsProps {
1818
activeVersion:TemplateVersion
1919
}
2020

21-
exportconstTemplateStats:FC<React.PropsWithChildren<TemplateStatsProps>>=({
22-
template,
23-
activeVersion,
24-
})=>{
21+
exportconstTemplateStats:FC<TemplateStatsProps>=({ template, activeVersion})=>{
2522
conststyles=useStyles()
2623

2724
return(

‎site/src/components/Typography/Typography.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ export interface TypographyProps extends MuiTypographyProps {
1818
*
1919
* See original component's Material UI documentation here: https://material-ui.com/components/typography/
2020
*/
21-
exportconstTypography:React.FC<React.PropsWithChildren<TypographyProps>>=({
22-
className,
23-
short,
24-
...rest
25-
})=>{
21+
exportconstTypography:React.FC<TypographyProps>=({ className, short, ...rest})=>{
2622
conststyles=useStyles()
2723

2824
letclasses=combineClasses({[styles.short]:short})

‎site/src/components/UserAvatar/UserAvatar.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ export interface UserAvatarProps {
77
username:string
88
}
99

10-
exportconstUserAvatar:FC<React.PropsWithChildren<UserAvatarProps>>=({
11-
username,
12-
className,
13-
})=>{
10+
exportconstUserAvatar:FC<UserAvatarProps>=({ username, className})=>{
1411
return<AvatarclassName={className}>{firstLetter(username)}</Avatar>
1512
}

‎site/src/components/UserDropdownContent/UserDropdownContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface UserDropdownContentProps {
2727
onSignOut:()=>void
2828
}
2929

30-
exportconstUserDropdownContent:FC<React.PropsWithChildren<UserDropdownContentProps>>=({
30+
exportconstUserDropdownContent:FC<UserDropdownContentProps>=({
3131
user,
3232
onPopoverClose,
3333
onSignOut,

‎site/src/components/WorkspaceBuildLogs/WorkspaceBuildLogs.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ export interface WorkspaceBuildLogsProps {
4141
logs:ProvisionerJobLog[]
4242
}
4343

44-
exportconstWorkspaceBuildLogs:FC<React.PropsWithChildren<WorkspaceBuildLogsProps>>=({
45-
logs,
46-
})=>{
44+
exportconstWorkspaceBuildLogs:FC<WorkspaceBuildLogsProps>=({ logs})=>{
4745
constgroupedLogsByStage=groupLogsByStage(logs)
4846
conststages=Object.keys(groupedLogsByStage)
4947
conststyles=useStyles()

‎site/src/components/WorkspaceBuildStats/WorkspaceBuildStats.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ export interface WorkspaceBuildStatsProps {
1515
build:WorkspaceBuild
1616
}
1717

18-
exportconstWorkspaceBuildStats:FC<React.PropsWithChildren<WorkspaceBuildStatsProps>>=({
19-
build,
20-
})=>{
18+
exportconstWorkspaceBuildStats:FC<WorkspaceBuildStatsProps>=({ build})=>{
2119
conststyles=useStyles()
2220
consttheme=useTheme()
2321
conststatus=getDisplayWorkspaceBuildStatus(theme,build)

‎site/src/components/WorkspaceScheduleButton/WorkspaceScheduleButton.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ export interface WorkspaceScheduleButtonProps {
5757
canUpdateWorkspace:boolean
5858
}
5959

60-
exportconstWorkspaceScheduleButton:React.FC<
61-
React.PropsWithChildren<WorkspaceScheduleButtonProps>
62-
>=({ workspace, onDeadlinePlus, onDeadlineMinus, canUpdateWorkspace})=>{
60+
exportconstWorkspaceScheduleButton:React.FC<WorkspaceScheduleButtonProps>=({
61+
workspace,
62+
onDeadlinePlus,
63+
onDeadlineMinus,
64+
canUpdateWorkspace,
65+
})=>{
6366
constanchorRef=useRef<HTMLButtonElement>(null)
6467
const[isOpen,setIsOpen]=useState(false)
6568
constid=isOpen ?"schedule-popover" :undefined

‎site/src/components/WorkspaceScheduleButton/WorkspaceScheduleLabel.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import { combineClasses } from "../../util/combineClasses"
44
import{autoStartDisplay,autoStopDisplay,isShuttingDown,Language}from"../../util/schedule"
55
import{isWorkspaceOn}from"../../util/workspace"
66

7-
exportconstWorkspaceScheduleLabel:React.FC<
8-
React.PropsWithChildren<{workspace:Workspace}>
9-
>=({ workspace})=>{
7+
exportconstWorkspaceScheduleLabel:React.FC<{workspace:Workspace}>=({ workspace})=>{
108
conststyles=useStyles()
119

1210
if(isWorkspaceOn(workspace)){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp