Explorar o código

mv Attachment to @growi/ui

Yuki Takei %!s(int64=4) %!d(string=hai) anos
pai
achega
8601b06f2c

+ 1 - 1
packages/app/src/components/PageAttachment/PageAttachmentList.jsx

@@ -1,7 +1,7 @@
 import React from 'react';
 import React from 'react';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
 
 
-import Attachment from './Attachment';
+import { Attachment } from '@growi/ui';
 
 
 export default class PageAttachmentList extends React.Component {
 export default class PageAttachmentList extends React.Component {
 
 

+ 1 - 1
packages/plugin-attachment-refs/src/client/js/components/AttachmentList.jsx

@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
 // eslint-disable-next-line import/no-unresolved
 // eslint-disable-next-line import/no-unresolved
 import axios from 'axios'; // import axios from growi dependencies
 import axios from 'axios'; // import axios from growi dependencies
 
 
-import Attachment from '@client/js/components/PageAttachment/Attachment';
+import { Attachment } from '@growi/ui';
 
 
 import RefsContext from '../util/RefsContext';
 import RefsContext from '../util/RefsContext';
 import TagCacheManagerFactory from '../util/TagCacheManagerFactory';
 import TagCacheManagerFactory from '../util/TagCacheManagerFactory';

+ 2 - 2
packages/app/src/components/PageAttachment/Attachment.jsx → packages/ui/src/components/Attachment/Attachment.jsx

@@ -1,9 +1,9 @@
 import React from 'react';
 import React from 'react';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
 
 
-import { UserPicture } from '@growi/ui';
+import { UserPicture } from '../User/UserPicture';
 
 
-export default class Attachment extends React.Component {
+export class Attachment extends React.Component {
 
 
   constructor(props) {
   constructor(props) {
     super(props);
     super(props);

+ 1 - 1
packages/ui/src/index.ts

@@ -1,2 +1,2 @@
-// export * from './components/Attachment/Attachment';
+export * from './components/Attachment/Attachment';
 export * from './components/User/UserPicture';
 export * from './components/User/UserPicture';