diff --git a/packages/frontend/component/src/ui/loading/loading.tsx b/packages/frontend/component/src/ui/loading/loading.tsx index ceba9bd1e0..4e46fede1d 100644 --- a/packages/frontend/component/src/ui/loading/loading.tsx +++ b/packages/frontend/component/src/ui/loading/loading.tsx @@ -1,7 +1,8 @@ import { assignInlineVars } from '@vanilla-extract/dynamic'; +import clsx from 'clsx'; import { withUnit } from '../../utils/with-unit'; -import { loading, speedVar } from './styles.css'; +import { loading, rotateAnimation, speedVar } from './styles.css'; export interface LoadingProps { size?: number | string; @@ -18,7 +19,7 @@ export const Loading = ({ const sizeWithUnit = size ? withUnit(size, 'px') : '16px'; return ( { // to make sure ai island is hidden first and animate in @@ -32,19 +18,6 @@ export const AIIsland = () => { ); const activeTab = useLiveData(activeView.activeSidebarTab$); const sidebarOpen = useLiveData(workbench.sidebarOpen$); - const globalState = useService(GlobalStateService).globalState; - const aiChatHasEverOpened = useLiveData( - LiveData.from( - globalState.watch(RIGHT_SIDEBAR_AI_HAS_EVER_OPENED_KEY), - false - ) - ); - - useEffect(() => { - if (sidebarOpen && activeTab?.id === 'chat') { - globalState.set(RIGHT_SIDEBAR_AI_HAS_EVER_OPENED_KEY, true); - } - }, [activeTab, globalState, sidebarOpen]); useEffect(() => { setHide((sidebarOpen && activeTab?.id === 'chat') || !haveChatTab); @@ -52,18 +25,7 @@ export const AIIsland = () => { return ( -
- {aiChatHasEverOpened ? null : ( -
-
-
-
-
- )} +