Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Nov 8, 2023
1 parent 6608c63 commit fd95016
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 334 deletions.
317 changes: 0 additions & 317 deletions packages/web-console/src/components/Splitter/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/web-console/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export * from "./PaneMenu"
export * from "./PaneWrapper"
export * from "./PopperHover"
export * from "./PopperToggle"
export * from "./Splitter"
export * from "./SwitchButton"
export * from "./Text"
export * from "./Toast"
Expand Down
17 changes: 1 addition & 16 deletions packages/web-console/src/scenes/Console/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React, { useEffect, useState } from "react"
import { useDispatch } from "react-redux"
import styled from "styled-components"
import { Splitter, useScreenSize, PopperHover } from "../../components"
import { useScreenSize, PopperHover } from "../../components"
import Editor from "../Editor"
import Result from "../Result"
import Schema from "../Schema"
import { ZeroState } from "./zero-state"
import { useCallback } from "react"
import { BusEvent } from "../../consts"
import { useLocalStorage } from "../../providers/LocalStorageProvider"
import { StoreKey } from "../../utils/localStorage/types"
Expand Down Expand Up @@ -95,20 +94,6 @@ const Console = () => {
}
}

const handleEditorSplitterChange = useCallback((value) => {
updateSettings(StoreKey.EDITOR_SPLITTER_BASIS, value)
setTimeout(() => {
window.bus.trigger(BusEvent.MSG_ACTIVE_SIDEBAR)
}, 0)
}, [])

const handleResultsSplitterChange = useCallback((value) => {
updateSettings(StoreKey.RESULTS_SPLITTER_BASIS, value)
setTimeout(() => {
window.bus.trigger(BusEvent.MSG_ACTIVE_SIDEBAR)
}, 0)
}, [])

useEffect(() => {
if (resultRef.current && result) {
dispatch(actions.console.setActiveBottomPanel("result"))
Expand Down

0 comments on commit fd95016

Please sign in to comment.