mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 21:50:43 +03:00
Migrate to twenty-ui - navigation/navigation-bar (#7996)
This PR was created by [GitStart](https://gitstart.com/) to address the requirements from this ticket: [TWNTY-7537](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7537). --- ### Description - Move navigation-bar components to `twenty-ui` Fixes twentyhq/private-issues#81 Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
parent
c7bc301dba
commit
c6ef14acc4
@ -1,9 +1,14 @@
|
||||
import { useCommandMenu } from '@/command-menu/hooks/useCommandMenu';
|
||||
import { isCommandMenuOpenedState } from '@/command-menu/states/isCommandMenuOpenedState';
|
||||
import { NavigationBar } from '@/ui/navigation/navigation-bar/components/NavigationBar';
|
||||
import { isNavigationDrawerExpandedState } from '@/ui/navigation/states/isNavigationDrawerExpanded';
|
||||
import { useRecoilState } from 'recoil';
|
||||
import { IconComponent, IconList, IconSearch, IconSettings } from 'twenty-ui';
|
||||
import {
|
||||
IconComponent,
|
||||
IconList,
|
||||
IconSearch,
|
||||
IconSettings,
|
||||
NavigationBar,
|
||||
} from 'twenty-ui';
|
||||
import { useIsSettingsPage } from '../hooks/useIsSettingsPage';
|
||||
import { currentMobileNavigationDrawerState } from '../states/currentMobileNavigationDrawerState';
|
||||
|
||||
|
@ -5,12 +5,11 @@ import {
|
||||
IconList,
|
||||
IconSearch,
|
||||
IconSettings,
|
||||
NavigationBar,
|
||||
} from 'twenty-ui';
|
||||
|
||||
import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';
|
||||
|
||||
import { NavigationBar } from '../NavigationBar';
|
||||
|
||||
const meta: Meta<typeof NavigationBar> = {
|
||||
title: 'UI/Navigation/NavigationBar/NavigationBar',
|
||||
component: NavigationBar,
|
||||
|
@ -25,7 +25,6 @@ export * from './src/modules/ui/navigation/menu-item/components/MenuItemSelect';
|
||||
export * from './src/modules/ui/navigation/menu-item/components/MenuItemSelectAvatar';
|
||||
export * from './src/modules/ui/navigation/menu-item/components/MenuItemSelectColor';
|
||||
export * from './src/modules/ui/navigation/menu-item/components/MenuItemToggle';
|
||||
export * from './src/modules/ui/navigation/navigation-bar/components/NavigationBar';
|
||||
export * from './src/modules/ui/navigation/step-bar/components/StepBar';
|
||||
|
||||
declare module '@emotion/react' {
|
||||
|
@ -9,3 +9,5 @@ export * from './link/components/SocialLink';
|
||||
export * from './link/components/UndecoratedLink';
|
||||
export * from './link/constants/Cal';
|
||||
export * from './link/constants/GithubLink';
|
||||
export * from './navigation-bar/components/NavigationBar';
|
||||
export * from './navigation-bar/components/NavigationBarItem';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import styled from '@emotion/styled';
|
||||
import { IconComponent } from 'twenty-ui';
|
||||
import { IconComponent } from '@ui/display/icon/types/IconComponent';
|
||||
|
||||
import { NavigationBarItem } from './NavigationBarItem';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { useTheme } from '@emotion/react';
|
||||
import styled from '@emotion/styled';
|
||||
import { IconComponent } from 'twenty-ui';
|
||||
import { IconComponent } from '@ui/display/icon/types/IconComponent';
|
||||
|
||||
const StyledIconButton = styled.div<{ isActive?: boolean }>`
|
||||
align-items: center;
|
Loading…
Reference in New Issue
Block a user