diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/ChatView/ChoicesDrawer.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/ChatView/ChoicesDrawer.tsx index 2508d7640b2..e2f91bf7976 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/ChatView/ChoicesDrawer.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/ChatView/ChoicesDrawer.tsx @@ -1,14 +1,13 @@ -import {Box, Drawer} from '@mui/material'; +import {Box} from '@mui/material'; import {MOON_200} from '@wandb/weave/common/css/color.styles'; -import {Tag} from '@wandb/weave/components/Tag'; +import {Icon} from '@wandb/weave/components/Icon'; import {Tailwind} from '@wandb/weave/components/Tailwind'; -import React, {useState, useEffect, useCallback} from 'react'; +import React, {useCallback, useEffect, useState} from 'react'; import {Button} from '../../../../../Button'; +import {ResizableDrawer} from '../common/ResizableDrawer'; import {ChoiceView} from './ChoiceView'; import {Choice} from './types'; -import {ResizableDrawer} from '../common/ResizableDrawer'; -import {Icon} from '@wandb/weave/components/Icon'; type ChoicesDrawerProps = { choices: Choice[]; @@ -28,7 +27,9 @@ export const ChoicesDrawer = ({ setSelectedChoiceIndex, }: ChoicesDrawerProps) => { const [width, setWidth] = useState(784); - const [maxAllowedWidth, setMaxAllowedWidth] = useState(window.innerWidth - 73); + const [maxAllowedWidth, setMaxAllowedWidth] = useState( + window.innerWidth - 73 + ); useEffect(() => { const handleResize = () => { @@ -55,8 +56,8 @@ export const ChoicesDrawer = ({ position: 'sticky', top: 0, zIndex: 20, - pl: "16px", - pr: "8px", + pl: '16px', + pr: '8px', height: 44, width: '100%', borderBottom: `1px solid ${MOON_200}`, @@ -82,7 +83,9 @@ export const ChoicesDrawer = ({ variant="ghost" icon="full-screen-mode-expand" onClick={handleFullScreen} - tooltip={width === maxAllowedWidth ? "Exit full screen" : "Full screen"} + tooltip={ + width === maxAllowedWidth ? 'Exit full screen' : 'Full screen' + } />