1
0
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:
JoinTyang
2024-11-05 18:03:53 +08:00
committed by GitHub
parent 2cb758e302
commit cc625f7815
15 changed files with 351 additions and 23 deletions

View File

@@ -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 };

View File

@@ -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>
);
};

View File

@@ -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 };