mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
fix translation and style (#6604)
This commit is contained in:
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
||||
import { mediaUrl } from '../utils/constants';
|
||||
import '../css/empty-tip.css';
|
||||
|
||||
function EmptyTip({ forDialog, className, title, text, children }) {
|
||||
function EmptyTip({ className, title, text, children }) {
|
||||
return (
|
||||
<div className={forDialog ? `${className || 'text-center mt-8'}` : 'empty-tip'}>
|
||||
<div className='empty-tip'>
|
||||
<img src={`${mediaUrl}img/no-items-tip.png`} alt="" width="100" height="100" className="no-items-img-tip" />
|
||||
{title && <span className="empty-tip-title">{title}</span>}
|
||||
{text && <span className="empty-tip-text">{text}</span>}
|
||||
@@ -15,7 +15,6 @@ function EmptyTip({ forDialog, className, title, text, children }) {
|
||||
}
|
||||
|
||||
EmptyTip.propTypes = {
|
||||
forDialog: PropTypes.bool,
|
||||
className: PropTypes.string,
|
||||
title: PropTypes.string,
|
||||
text: PropTypes.string,
|
||||
|
Reference in New Issue
Block a user