mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
use wrapper
This commit is contained in:
parent
44fb448f3a
commit
c552a6a345
@ -24,7 +24,7 @@ const ItemTypes = {
|
|||||||
SliderColorPicker: SliderPicker,
|
SliderColorPicker: SliderPicker,
|
||||||
}
|
}
|
||||||
|
|
||||||
const SettingsFooter = () => {
|
const SettingsFooter = (props) => {
|
||||||
const isDevMode = window.__evite?.env?.NODE_ENV !== "production"
|
const isDevMode = window.__evite?.env?.NODE_ENV !== "production"
|
||||||
|
|
||||||
return <div className="footer" >
|
return <div className="footer" >
|
||||||
@ -43,7 +43,7 @@ const SettingsFooter = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<antd.Button type="link" onClick={this.onClickAppAbout}>
|
<antd.Button type="link" onClick={props.onClickAppAbout}>
|
||||||
<Translation>
|
<Translation>
|
||||||
{t => t("about")}
|
{t => t("about")}
|
||||||
</Translation>
|
</Translation>
|
||||||
@ -425,7 +425,8 @@ export default class SettingsMenu extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <div className="settings">
|
return <div className="settings_wrapper">
|
||||||
|
<div className="settings">
|
||||||
<antd.Tabs
|
<antd.Tabs
|
||||||
activeKey={this.state.activeKey}
|
activeKey={this.state.activeKey}
|
||||||
centered
|
centered
|
||||||
@ -435,7 +436,8 @@ export default class SettingsMenu extends React.PureComponent {
|
|||||||
{this.generateSettingsTabs()}
|
{this.generateSettingsTabs()}
|
||||||
</antd.Tabs>
|
</antd.Tabs>
|
||||||
|
|
||||||
<SettingsFooter />
|
<SettingsFooter onClickAppAbout={this.onClickAppAbout} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
.settings_wrapper {
|
||||||
.settings {
|
.settings {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -136,3 +137,4 @@
|
|||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user