fix: rm changeBrowserDimension prop

This commit is contained in:
karishmas6
2024-07-13 23:03:05 +05:30
parent a0606f5766
commit 51f1755b14

View File

@@ -10,6 +10,7 @@ import { useBrowserDimensionsStore } from "../context/browserDimensions";
import { useGlobalInfoStore } from "../context/globalInfo";
import { editRecordingFromStorage } from "../api/storage";
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
import styled from "styled-components";
interface RecordingPageProps {
recordingName?: string;
@@ -106,22 +107,29 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => {
<div>
{isLoaded ?
<Grid container direction="row" spacing={0}>
{/* <Grid item xs={2} ref={workflowListRef} style={{ display: "flex", flexDirection: "row" }}>
<Grid item xs={2} ref={workflowListRef} style={{ display: "flex", flexDirection: "row" }}>
<LeftSidePanel
sidePanelRef={workflowListRef.current}
alreadyHasScrollbar={hasScrollbar}
recordingName={recordingName ? recordingName : ''}
handleSelectPairForEdit={handleSelectPairForEdit}
/>
</Grid> */}
</Grid>
<Grid id="browser-content" ref={browserContentRef} item xs>
<BrowserContent />
</Grid>
{/* <Grid item xs={2}>
<RightSidePanel pairForEdit={pairForEdit} changeBrowserDimensions={changeBrowserDimensions}/>
</Grid> */}
<Grid item xs={2}>
<RightSidePanel pairForEdit={pairForEdit} />
</Grid>
</Grid>
: <Loader />}
</div>
);
};
const RecordingPageWrapper = styled.div`
position: relative;
width: 100vw;
height: 100vh;
overflow: hidden;
`;