Skip to content

Commit

Permalink
refactor: import ui components from the root package
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Aug 6, 2024
1 parent 1615bb4 commit d76ded1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/Toolbar/HoverMenuBar/HoverMenuList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors, elevations, spacers } from '@dhis2/ui-constants'
import { colors, elevations, spacers } from '@dhis2/ui'
import PropTypes from 'prop-types'
import React, { createContext, useCallback, useContext, useState } from 'react'
import { useHoverMenubarContext } from './HoverMenuBar.js'
Expand Down
4 changes: 1 addition & 3 deletions src/components/Toolbar/HoverMenuBar/HoverMenuListItem.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { IconChevronRight24 } from '@dhis2/ui-icons'
import { Popper } from '@dhis2-ui/popper'
import { Portal } from '@dhis2-ui/portal'
import { IconChevronRight24, Popper, Portal } from '@dhis2/ui'
import cx from 'classnames'
import PropTypes from 'prop-types'
import React, { useRef } from 'react'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors, spacers } from '@dhis2/ui-constants'
import { colors, spacers } from '@dhis2/ui'
import css from 'styled-jsx/css'

export default css`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toolbar/MenuButton.styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors, spacers, theme } from '@dhis2/ui-constants'
import { colors, spacers, theme } from '@dhis2/ui'
import css from 'styled-jsx/css'

export default css`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toolbar/Toolbar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from '@dhis2/ui-constants'
import { colors } from '@dhis2/ui'
import PropTypes from 'prop-types'
import React from 'react'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Toolbar/ToolbarSidebar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from '@dhis2/ui-constants'
import { colors } from '@dhis2/ui'
import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
Expand Down
4 changes: 1 addition & 3 deletions src/components/Toolbar/UpdateButton.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import i18n from '@dhis2/d2-i18n'
import { colors } from '@dhis2/ui-constants'
import { IconSync16 } from '@dhis2/ui-icons'
import { CircularLoader } from '@dhis2-ui/loader'
import { CircularLoader, IconSync16, colors } from '@dhis2/ui'
import PropTypes from 'prop-types'
import React from 'react'
import menuButtonStyles from './MenuButton.styles.js'
Expand Down

0 comments on commit d76ded1

Please sign in to comment.