Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed May 15, 2024
1 parent 638b5ed commit ed3d66d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export const Footer: FC<FooterProps> = ({ children, containerSize, logo }) => {
)
}

// TODO: test cases footer & other simple reusable components
export default Footer
9 changes: 9 additions & 0 deletions packages/next-drupal/src/components/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export { default as App } from './App/App'
export { default as BackToTop } from './BackToTop/BackToTop'
export { default as Error } from './Errors/Error'
export { default as ErrorBoundary } from './Errors/ErrorBoundary'
export { default as WidgetError } from './Errors/WidgetError'
export * from './Footer/Footer'
export * from './Header/Header'
export * from './Layout/DefaultLayout'
export * from './Loader/Loader'
2 changes: 1 addition & 1 deletion packages/next-drupal/src/hocs/withDrupalWebform.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Skeleton } from 'antd'

import useDrupalApi from '../hooks/useDrupalApi'
import { useDrupalApi } from '../hooks'

function SkeletonWebform() {
const labelStyle = { width: '100px' }
Expand Down
5 changes: 4 additions & 1 deletion packages/next-drupal/src/hooks/useAutoComplete.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import type { AutoCompleteData, AutoCompleteResults } from '../types'
import type {
AutoCompleteData,
AutoCompleteResults,
} from '@edw/next-drupal/@types'

import { useQuery } from '@tanstack/react-query'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import React, { useEffect, useState } from 'react'
import { Skeleton } from 'antd'
import { JsonApiResource } from 'next-drupal'

// @ts-ignore - cyclic dependency
import { drupal } from '../../../../drupal/src/lib/drupal'
import { drupal } from '@edw/next-drupal/lib/drupal'

import MediaDocument from './templates/MediaDocument'

interface EntityEmbedProps {
Expand Down

0 comments on commit ed3d66d

Please sign in to comment.