mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
860565f3a6
* fix ts-expect-error * removes useless await see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md We're not quite ready to have this rule on everywhere, but in this case I can see that it's correct to follow. * add comment about magic number and moves the assignment to the one place it's used I opted not to make a ticket because we are recently running out of tickets and this seems to be a relatively small thing @reynolek please confirm this is the correct course of action. * initialize ref to reflect reality (and include actual type) * fixes root cause of error, inlines one-liners the error with the type of `_handleInputColorChange` was due to `onChange` being the wrong prop to use (where `onChange` is the one we want). * use onChange instead of onInput to access correct types ultimately, since react's behavior diverged from the DOM behavior to match onInput, this should have no effect on any functionality since react assigns this event to `onChange` anyway. see https://github.com/facebook/react/blob/master/fixtures/attribute-behavior/src/attributes.js#L2089 * clears remaining ts-expect-errors in file * updates fallback call per review feedback |
||
---|---|---|
.. | ||
__mocks__ | ||
add-key-combination-modal.tsx | ||
alert-modal.tsx | ||
ask-modal.tsx | ||
code-prompt-modal.tsx | ||
cookie-modify-modal.tsx | ||
cookies-modal.tsx | ||
environment-edit-modal.tsx | ||
error-modal.tsx | ||
export-requests-modal.tsx | ||
filter-help-modal.tsx | ||
generate-code-modal.tsx | ||
generate-config-modal.tsx | ||
git-branches-modal.tsx | ||
git-log-modal.tsx | ||
git-repository-settings-modal.tsx | ||
git-staging-modal.tsx | ||
index.ts | ||
login-modal.tsx | ||
move-request-group-modal.tsx | ||
nunjucks-modal.tsx | ||
payment-notification-modal.tsx | ||
prompt-modal.tsx | ||
proto-files-modal.tsx | ||
request-create-modal.tsx | ||
request-render-error-modal.tsx | ||
request-settings-modal.tsx | ||
request-switcher-modal.tsx | ||
response-debug-modal.tsx | ||
select-modal.tsx | ||
settings-modal.tsx | ||
sync-branches-modal.tsx | ||
sync-delete-modal.tsx | ||
sync-history-modal.tsx | ||
sync-merge-modal.tsx | ||
sync-share-modal.tsx | ||
sync-staging-modal.tsx | ||
workspace-environments-edit-modal.tsx | ||
workspace-settings-modal.tsx | ||
wrapper-modal.tsx |