[Refactor] MessageFormats: Improve reusability of setting container templates.
This commit is contained in:
@@ -155,13 +155,17 @@ export const DownloadModelsContainer = (props) => (
|
|||||||
|
|
||||||
export const MessageFormatContainer = (props) => {
|
export const MessageFormatContainer = (props) => {
|
||||||
return (
|
return (
|
||||||
<div className={clsx(styles.container, styles.flex_column)}>
|
<>
|
||||||
<div className={styles.label_only_section}>
|
<CommonContainer
|
||||||
<LabelComponent label={props.label} desc={props.desc} />
|
remove_border_bottom={true}
|
||||||
</div>
|
label_type="label_only"
|
||||||
<div className={styles.message_format_section}>
|
{...props}
|
||||||
<MessageFormat {...props}/>
|
/>
|
||||||
</div>
|
<CommonContainer
|
||||||
</div>
|
Component={MessageFormat}
|
||||||
|
label_type="no_label"
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -19,10 +19,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.label_only_section {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.deepl_auth_key_label_section {
|
.deepl_auth_key_label_section {
|
||||||
max-width: 34rem;
|
max-width: 34rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -30,8 +26,4 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1.4rem;
|
gap: 1.4rem;
|
||||||
}
|
|
||||||
|
|
||||||
.message_format_section {
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user