Files
supersonic/webapp/packages/supersonic-fe/src/pages/SemanticModel/components/FormLabelRequire.tsx
tristanliu 5bab18e092 [improvement][semantic-fe] Add model alias setting & Add view permission restrictions to the model permission management tab. (#63)
[improvement][semantic-fe] Add permission control to the action buttons for the main domain; apply high sensitivity filtering to the authorization of metrics/dimensions.
[improvement][semantic-fe] Optimize the editing mode in the dimension/metric/datasource components to use the modelId stored in the database for data, instead of relying on the data from the state manager.
2023-09-09 18:36:54 +08:00

26 lines
544 B
TypeScript

import React from 'react';
type Props = {
title: string;
labelStyles?: CSSStyleSheet;
};
const FormLabelRequire: React.FC<Props> = ({ title, labelStyles = {} }) => {
return (
<>
<div className="ant-col ant-form-item-label" style={{ padding: 0 }}>
<label
htmlFor="description"
className="ant-form-item-required"
title={title}
style={{ fontSize: '16px', ...labelStyles }}
>
{title}
</label>
</div>
</>
);
};
export default FormLabelRequire;