Skip to content

Commit

Permalink
refactor: move CopyLinkDialog to dm-core
Browse files Browse the repository at this point in the history
  • Loading branch information
awesthouse committed Mar 19, 2024
1 parent 485c618 commit 98eceaf
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 19 deletions.
1 change: 0 additions & 1 deletion packages/dm-core-plugins/src/common/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ export * from './SortableList'
export * from './Message/Message'
export * from './Pagination/Pagination'
export * from './TemplateMenu/TemplateMenu'
export * from './CopyLinkDialog/CopyLinkDialog'
export * from './DeleteSoftButton'
export * from './LazyLoad/LazyLoad'
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { TNodeWrapperProps } from '@development-framework/dm-core'
import {
CopyLinkDialog,
TNodeWrapperProps,
} from '@development-framework/dm-core'
import { Menu } from '@equinor/eds-core-react'
import { useState } from 'react'
import { CopyLinkDialog } from '../../../common'
import { EDialog } from '../../types'
import AppendEntityDialog from '../dialogs/AppendEntityDialog'
import DeleteDialog from '../dialogs/DeleteDialog'
Expand Down
7 changes: 5 additions & 2 deletions packages/dm-core-plugins/src/publish/PublishPlugin.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { EntityView, IUIPlugin } from '@development-framework/dm-core'
import {
CopyLinkDialog,
EntityView,
IUIPlugin,
} from '@development-framework/dm-core'
import { Button, Icon } from '@equinor/eds-core-react'
import { approve } from '@equinor/eds-icons'
import { useState } from 'react'
import { CopyLinkDialog } from '../common'

export const PublishPlugin = (
props: IUIPlugin & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
import {
AuthContext,
Dialog,
EBlueprint,
EntityPickerDialog,
ErrorResponse,
TEntityPickerReturn,
TLinkReference,
TValidEntity,
truncatePathString,
useApplication,
useDocument,
} from '@development-framework/dm-core'
import {
Button,
Icon,
Expand All @@ -24,6 +11,19 @@ import { folder_open } from '@equinor/eds-icons'
import { AxiosError } from 'axios'
import { ChangeEvent, useContext, useState } from 'react'
import { toast } from 'react-toastify'
import {
AuthContext,
Dialog,
EBlueprint,
EntityPickerDialog,
ErrorResponse,
TEntityPickerReturn,
TLinkReference,
TValidEntity,
truncatePathString,
useApplication,
useDocument,
} from '../../'
import { setMetaInDocument } from './utils'

type TPropsBase = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EBlueprint, TMeta, TValidEntity } from '@development-framework/dm-core'
import { EBlueprint, TMeta, TValidEntity } from '../../'

export function setMetaInDocument(
document: TValidEntity,
Expand Down
1 change: 1 addition & 0 deletions packages/dm-core/src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './AccessControl/AccessControlListComponent'
export * from './CopyLinkDialog/CopyLinkDialog'
export * from './Dialog'
export * from './DynamicTable'
export * from './EntityView'
Expand Down

0 comments on commit 98eceaf

Please sign in to comment.