Yuki Takei 6 лет назад
Родитель
Сommit
d179ceb1b1
1 измененных файлов с 0 добавлено и 30 удалено
  1. 0 30
      src/client/js/components/Page/PagePath.jsx

+ 0 - 30
src/client/js/components/Page/PagePath.jsx

@@ -1,30 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-
-export default class PagePath extends React.Component {
-
-  linkPath(path) {
-    return path;
-  }
-
-  render() {
-    const page = this.props.page;
-    const shortPath = this.getShortPath(page.path);
-    const pathPrefix = page.path.replace(new RegExp(`${shortPath}(/)?$`), '');
-
-    return (
-      <span className="page-path">
-        {pathPrefix}
-        <strong>{shortPath}</strong>
-      </span>
-    );
-  }
-
-}
-
-PagePath.propTypes = {
-  page: PropTypes.object.isRequired,
-};
-
-PagePath.defaultProps = {
-};