Skip to content

Commit e488a7c

Browse files
committed
Fix lint warnings
1 parent d06db2a commit e488a7c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/components/ErrorBoundary.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class ErrorBoundary extends Component<Props, State> {
4242
}
4343

4444
return (
45-
<div className="bg-error-bg-neutral-900 border-red-600 text-red-400 m-5 rounded border p-5">
45+
<div className="bg-error-bg-neutral-900 m-5 rounded border border-red-600 p-5 text-red-400">
4646
<h3 className="m-0 mb-2.5 text-base">
4747
Something went wrong{this.props.workspaceInfo && ` in ${this.props.workspaceInfo}`}
4848
</h3>
@@ -59,7 +59,7 @@ export class ErrorBoundary extends Component<Props, State> {
5959
)}
6060
<button
6161
onClick={this.handleReset}
62-
className="bg-red-600 hover:bg-red-500 cursor-pointer rounded-sm border-none px-4 py-2 text-sm text-white"
62+
className="cursor-pointer rounded-sm border-none bg-red-600 px-4 py-2 text-sm text-white hover:bg-red-500"
6363
>
6464
Reset
6565
</button>

src/components/NewWorkspaceModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const NewWorkspaceModal: React.FC<NewWorkspaceModalProps> = ({
134134
required
135135
aria-required="true"
136136
/>
137-
{error && <div className="text-red-400 mt-1.5 text-[13px]">{error}</div>}
137+
{error && <div className="mt-1.5 text-[13px] text-red-400">{error}</div>}
138138
</div>
139139

140140
<div className="mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:border-neutral-700 [&_input]:bg-neutral-900 [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:border-sky-600 [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_label]:text-neutral-300 [&_option]:bg-neutral-900 [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:border-neutral-700 [&_select]:bg-neutral-900 [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:border-sky-600 [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60">
@@ -167,7 +167,7 @@ const NewWorkspaceModal: React.FC<NewWorkspaceModalProps> = ({
167167
/>
168168
)}
169169
{!hasBranches && (
170-
<div className="text-red-400 mt-1.5 text-[13px]">
170+
<div className="mt-1.5 text-[13px] text-red-400">
171171
No branches were detected automatically. Enter the trunk branch manually.
172172
</div>
173173
)}

src/components/ProjectSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
532532
title="Remove project"
533533
aria-label={`Remove project ${projectName}`}
534534
data-project-path={projectPath}
535-
className="hover:text-red-400 hover:bg-red-400/10 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-base text-neutral-400 opacity-0 transition-all duration-200"
535+
className="flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-base text-neutral-400 opacity-0 transition-all duration-200 hover:bg-red-400/10 hover:text-red-400"
536536
>
537537
×
538538
</button>

src/components/SecretsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const SecretsModal: React.FC<SecretsModalProps> = ({
179179
type="button"
180180
onClick={() => removeSecret(index)}
181181
disabled={isLoading}
182-
className="text-red-400 border-danger-light hover:bg-red-400/10 cursor-pointer rounded border bg-transparent px-2.5 py-1.5 text-[13px] transition-all duration-200"
182+
className="border-danger-light cursor-pointer rounded border bg-transparent px-2.5 py-1.5 text-[13px] text-red-400 transition-all duration-200 hover:bg-red-400/10"
183183
>
184184
×
185185
</button>

0 commit comments

Comments
 (0)