mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Add one tooltip.
This commit is contained in:
@ -12,7 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import {message} from "antd";
|
||||
import {message, Tooltip} from "antd";
|
||||
import {QuestionCircleTwoTone} from "@ant-design/icons";
|
||||
import React from "react";
|
||||
import {isMobile as isMobileDevice} from "react-device-detect";
|
||||
import "./i18n";
|
||||
@ -408,3 +409,14 @@ export function renderHelmet(application) {
|
||||
</Helmet>
|
||||
)
|
||||
}
|
||||
|
||||
export function getLabel(text, tooltip) {
|
||||
return (
|
||||
<React.Fragment>
|
||||
<span style={{ marginRight: 4 }}>{text}</span>
|
||||
<Tooltip placement="top" title={tooltip}>
|
||||
<QuestionCircleTwoTone twoToneColor="rgb(45,120,213)" />
|
||||
</Tooltip>
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user