Skip to content

Commit

Permalink
Fix ts issues
Browse files Browse the repository at this point in the history
  • Loading branch information
truell20 committed Mar 29, 2023
1 parent 10453b9 commit 0812078
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/appComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function ErrorPopup() {
<Modal
isOpen={showError}
onRequestClose={() => {
dispatch(gs.closeError(null))
dispatch(gs.closeError())
}}
style={customStyles}
>
Expand All @@ -76,7 +76,7 @@ function ErrorPopup() {
</div>
<div
className="errorPopup__title_close"
onClick={() => dispatch(gs.closeError(null))}
onClick={() => dispatch(gs.closeError())}
>
<FontAwesomeIcon icon={faClose} />
</div>
Expand Down Expand Up @@ -110,7 +110,7 @@ function RateLimitPopup() {
</div>
<div
className="errorPopup__title_close"
onClick={() => dispatch(gs.closeError(null))}
onClick={() => dispatch(gs.closeError())}
>
<FontAwesomeIcon icon={faClose} />
</div>
Expand Down Expand Up @@ -190,7 +190,7 @@ function SSHPopup() {
<Modal
isOpen={showRemotePopup}
onRequestClose={() => {
dispatch(gs.closeRemotePopup(null))
dispatch(gs.closeRemotePopup())
}}
style={customStyles}
>
Expand All @@ -201,7 +201,7 @@ function SSHPopup() {
</div>
<div
className="remotePopup__title_close"
onClick={() => dispatch(gs.closeRemotePopup(null))}
onClick={() => dispatch(gs.closeRemotePopup())}
>
<FontAwesomeIcon icon={faClose} />
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/commandPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const mainCommands: { [key in MainCommandIds]: Command } = {
description: 'Open the integrated terminal',
shortcut: ['Ctrl+`'],
action: (dispatch: Dispatch<AnyAction>) => {
dispatch(openTerminal(null))
dispatch(openTerminal())
},
},
ssh: {
Expand All @@ -191,7 +191,7 @@ const mainCommands: { [key in MainCommandIds]: Command } = {
name: 'Open SSH Folder',
description: 'Open a remote folder over ssh',
action: (dispatch: Dispatch<AnyAction>) => {
dispatch(openRemotePopup(null))
dispatch(openRemotePopup())
},
},
chatHistory: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function Tab({ tid }: { tid: number }) {
}}
onDragEnd={(e) => {
revertTabsChildrenEvents() // revert for current pane
dispatch(stopDraggingTab(null))
dispatch(stopDraggingTab())
}}
className={`tab ${tab.isActive ? 'tab__is_active' : ''} ${
file.deleted == true ? 'tab__is_deleted' : ''
Expand Down
4 changes: 2 additions & 2 deletions src/components/terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const BottomTerminal: React.FC = () => {
useEffect(() => {
const handleKeyDown = (event: KeyboardEvent) => {
if (event.key === '`' && event.ctrlKey) {
dispatch(gs.toggleTerminal(null))
dispatch(gs.toggleTerminal())
}
}

Expand Down Expand Up @@ -161,7 +161,7 @@ export const BottomTerminal: React.FC = () => {
<button
className="closeButton"
onClick={() => {
dispatch(gs.closeTerminal(null))
dispatch(gs.closeTerminal())
}}
>
<FontAwesomeIcon icon={faTimes} />
Expand Down
4 changes: 2 additions & 2 deletions src/components/titlebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function MenuBar() {
[
'Open SSH Folder',
() => {
dispatch(gs.openRemotePopup(null))
dispatch(gs.openRemotePopup())
},
'',
],
Expand Down Expand Up @@ -323,7 +323,7 @@ export function TitleBar({
<div
className="titlebar__right_button"
onClick={() => {
dispatch(gs.toggleTerminal(null))
dispatch(gs.toggleTerminal())
}}
>
<FontAwesomeIcon icon={faSquareTerminal} />
Expand Down
2 changes: 1 addition & 1 deletion src/features/chat/chatThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ export const continueGeneration = createAsyncThunk(
dispatch(openRateLimit())
dispatch(interruptGeneration(null))
} else if (!(e instanceof PromptCancelledError)) {
dispatch(openError(null))
dispatch(openError())
dispatch(interruptGeneration(null))
}
dispatch(setHitTokenLimit({ conversationId, hitTokenLimit: false }))
Expand Down
2 changes: 1 addition & 1 deletion src/features/listeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ connector.registerFileWasUpdated((evt: any, payload: any) => {

// @ts-ignore
connector.registerOpenRemotePopup((_evt: any, _payload: any) => {
store.dispatch(gs.openRemotePopup(null))
store.dispatch(gs.openRemotePopup())
})

/////////
Expand Down

0 comments on commit 0812078

Please sign in to comment.