mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
migrate old wiki to new wiki (#6987)
* migrate old wiki to new wiki * change style --------- Co-authored-by: Michael An <2331806369@qq.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import SeahubSelect from './seahub-select';
|
||||
import { NoGroupMessage } from './no-group-message';
|
||||
import { MenuSelectStyle, UserSelectStyle } from './seahub-select-style';
|
||||
import { MenuSelectStyle, UserSelectStyle, NoOptionsStyle } from './seahub-select-style';
|
||||
|
||||
export { SeahubSelect, NoGroupMessage, MenuSelectStyle, UserSelectStyle };
|
||||
export { SeahubSelect, NoGroupMessage, MenuSelectStyle, UserSelectStyle, NoOptionsStyle };
|
||||
|
@@ -1,10 +1,11 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { gettext } from '../../../utils/constants';
|
||||
import { NoOptionsStyle } from './seahub-select-style';
|
||||
|
||||
const NoGroupMessage = (props) => {
|
||||
return (
|
||||
<div {...props.innerProps} style={{ margin: '6px 10px', textAlign: 'center', color: 'hsl(0,0%,50%)' }}>{gettext('Group not found')}</div>
|
||||
<div {...props.innerProps} style={NoOptionsStyle}>{gettext('Group not found')}</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
@@ -87,4 +87,10 @@ const UserSelectStyle = {
|
||||
},
|
||||
};
|
||||
|
||||
export { MenuSelectStyle, UserSelectStyle };
|
||||
const NoOptionsStyle = {
|
||||
margin: '6px 10px',
|
||||
textAlign: 'center',
|
||||
color: 'hsl(0, 0%, 50%)',
|
||||
};
|
||||
|
||||
export { MenuSelectStyle, UserSelectStyle, NoOptionsStyle };
|
||||
|
Reference in New Issue
Block a user