Skip to content

Commit 2a3ef15

Browse files
committed
fix types
1 parent 74c17c0 commit 2a3ef15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2158
-2102
lines changed

packages/insomnia/src/routes/auth.authorize.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Fragment } from 'react';
21
import { Button, Heading } from 'react-aria-components';
32
import { href, redirect, useFetchers, useNavigate } from 'react-router';
43

@@ -101,7 +100,7 @@ const Component = () => {
101100
<div className="flex flex-col gap-[--padding-md] text-[--color-font]">
102101
<Heading className="px-3 text-center text-2xl font-bold">Authorizing Insomnia</Heading>
103102
{
104-
<Fragment>
103+
<>
105104
<p>
106105
A new page should have opened in your default web browser. Please log in. If you choose to login with SSO
107106
and it uses a different email to your previous login your teams will not be migrated.
@@ -166,7 +165,7 @@ const Component = () => {
166165
{authorizeFetcher.data?.errors?.message && <p>{authorizeFetcher.data.errors.message}</p>}
167166
</form>
168167
</div>
169-
</Fragment>
168+
</>
170169
}
171170
<div className="flex w-full justify-center">
172171
<Button

packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.$workspaceId.debug.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ const Debug = () => {
456456
submitName: 'Create',
457457
label: 'Name',
458458
selectText: true,
459-
onComplete: name =>
459+
onComplete: (name: string) =>
460460
createRequestGroupFetcher.submit({
461461
organizationId,
462462
projectId,
@@ -648,7 +648,7 @@ const Debug = () => {
648648
submitName: 'Create',
649649
label: 'Name',
650650
selectText: true,
651-
onComplete: name =>
651+
onComplete: (name: string) =>
652652
createRequestGroupFetcher.submit({
653653
organizationId,
654654
projectId,

packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.$workspaceId.mock-server.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const Component = () => {
112112
title: 'Rename mock route',
113113
defaultValue: mockRoutes.find(s => s._id === id)?.name,
114114
submitName: 'Rename',
115-
onComplete: name => {
115+
onComplete: (name: string) => {
116116
const hasRouteInServer = mockRoutes
117117
.filter(m => m._id !== id)
118118
.find(
@@ -268,7 +268,7 @@ const Component = () => {
268268
defaultValue: '/',
269269
submitName: 'Create',
270270
placeholder: '/path/to/resource',
271-
onComplete: name => {
271+
onComplete: (name: string) => {
272272
const hasRouteInServer = mockRoutes.find(m => m.name === name && m.method.toUpperCase() === 'GET');
273273
if (hasRouteInServer) {
274274
showModal(AlertModal, {

packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.$workspaceId.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const Component = () => {
171171
title: 'Rename test suite',
172172
defaultValue: unitTestSuites.find(s => s._id === suiteId)?.name,
173173
submitName: 'Rename',
174-
onComplete: name => {
174+
onComplete: (name: string) => {
175175
name &&
176176
updateTestSuiteFetcher.submit({
177177
organizationId,

0 commit comments

Comments
 (0)