diff --git a/frontend/src/pages/share-with-ocm/last-path-item-wrapper.js b/frontend/src/pages/share-with-ocm/last-path-item-wrapper.js index fd0aa6e81e..127e55618b 100644 --- a/frontend/src/pages/share-with-ocm/last-path-item-wrapper.js +++ b/frontend/src/pages/share-with-ocm/last-path-item-wrapper.js @@ -58,7 +58,7 @@ class LastPathItemWrapper extends React.Component { - + {opList.map((item, index) => { return ( diff --git a/frontend/src/pages/share-with-ocm/shared-with-ocm.js b/frontend/src/pages/share-with-ocm/shared-with-ocm.js index 347750b45a..7c2d6e819a 100644 --- a/frontend/src/pages/share-with-ocm/shared-with-ocm.js +++ b/frontend/src/pages/share-with-ocm/shared-with-ocm.js @@ -5,7 +5,7 @@ import relativeTime from 'dayjs/plugin/relativeTime'; import Cookies from 'js-cookie'; import classnames from 'classnames'; import { Link, navigate } from '@gatsbyjs/reach-router'; -import { Dropdown, DropdownToggle, DropdownItem } from 'reactstrap'; +import { DropdownItem } from 'reactstrap'; import { gettext, siteRoot } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import { Utils } from '../../utils/utils'; @@ -17,6 +17,7 @@ import ReposSortMenu from '../../components/sort-menu'; import SortOptionsDialog from '../../components/dialog/sort-options'; import LibsMobileThead from '../../components/libs-mobile-thead'; import { LIST_MODE } from '../../components/dir-view-mode/constants'; +import MobileItemMenu from '../../components/mobile-item-menu'; const propTypes = { currentViewMode: PropTypes.string, @@ -256,22 +257,9 @@ class Item extends Component { {item.from_server_url} - - - - - - {gettext('Leave Share')} - - - + + {gettext('Leave Share')} + ); @@ -289,8 +277,8 @@ class SharedWithOCM extends Component { constructor(props) { super(props); this.sortOptions = [ - { value: 'name-asc', text: gettext('By name ascending') }, - { value: 'name-desc', text: gettext('By name descending') } + { value: 'name-asc', text: gettext('Ascending by name') }, + { value: 'name-desc', text: gettext('Descending by name') } ]; this.state = { loading: true,