Skip to content

Commit

Permalink
refactor!: remove useIsMobile hook
Browse files Browse the repository at this point in the history
Refs: SHELL-223 (#475)
  • Loading branch information
CataldoMazzilli authored Aug 5, 2024
1 parent fe82244 commit 0d8606e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 68 deletions.
3 changes: 0 additions & 3 deletions api-extractor/carbonio-shell-ui.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1593,9 +1593,6 @@ export const useIntegratedFunction: (id: string) => [AnyFunction, boolean];
// @public
export function useIsCarbonioCE(): boolean | undefined;

// @public @deprecated (undocumented)
export function useIsMobile(): boolean;

// Warning: (ae-forgotten-export) The symbol "LocalStorageOptions" needs to be exported by the entry point lib.d.ts
//
// @public (undocumented)
Expand Down
2 changes: 0 additions & 2 deletions src/boot/app/app-direct-exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ export { getNotificationManager } from '../../notification/NotificationManager';

export { runSearch } from '../../search/run-search';

export { useIsMobile } from '../../shell/hooks/useIsMobile';

export { useLocalStorage } from '../../shell/hooks/useLocalStorage';

export const {
Expand Down
16 changes: 0 additions & 16 deletions src/shell/hooks/useIsMobile.ts

This file was deleted.

30 changes: 0 additions & 30 deletions src/shell/shell-context-provider.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/shell/shell-context.ts

This file was deleted.

9 changes: 3 additions & 6 deletions src/shell/shell-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import styled from 'styled-components';

import AppViewContainer from './app-view-container';
import { BoardContainer } from './boards/board-container';
import ShellContextProvider from './shell-context-provider';
import ShellHeader from './shell-header';
import ShellPrimaryBar from './shell-primary-bar';
import ShellSecondaryBar from './shell-secondary-bar';
Expand Down Expand Up @@ -75,11 +74,9 @@ const ShellComponent = (): React.JSX.Element => (
);

const ShellView = (): React.JSX.Element => (
<ShellContextProvider>
<PreviewManager>
<ShellComponent />
</PreviewManager>
</ShellContextProvider>
<PreviewManager>
<ShellComponent />
</PreviewManager>
);

export default ShellView;

0 comments on commit 0d8606e

Please sign in to comment.