mirror of
https://github.com/ragestudio/comty.git
synced 2025-07-09 01:04:16 +00:00
Format
This commit is contained in:
parent
1e6dae8204
commit
89ca853a8a
@ -159,7 +159,10 @@ const AccountButton = React.forwardRef((props, ref) => {
|
|||||||
>
|
>
|
||||||
<div className="icon">
|
<div className="icon">
|
||||||
{user ? (
|
{user ? (
|
||||||
<antd.Avatar shape="square" src={app.userData.avatar} />
|
<antd.Avatar
|
||||||
|
shape="square"
|
||||||
|
src={app.userData.avatar}
|
||||||
|
/>
|
||||||
) : (
|
) : (
|
||||||
createIconRender("FiLogin")
|
createIconRender("FiLogin")
|
||||||
)}
|
)}
|
||||||
@ -168,6 +171,8 @@ const AccountButton = React.forwardRef((props, ref) => {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
AccountButton.displayName = "AccountButton"
|
||||||
|
|
||||||
export class BottomBar extends React.Component {
|
export class BottomBar extends React.Component {
|
||||||
static contextType = Context
|
static contextType = Context
|
||||||
|
|
||||||
@ -366,9 +371,7 @@ export class BottomBar extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const heightValue = Number(
|
const heightValue = Number(
|
||||||
app.cores.style
|
app.cores.style.getDefaultVar("bottom-bar-height").replace("px", ""),
|
||||||
.getDefaultVar("bottom-bar-height")
|
|
||||||
.replace("px", ""),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -409,10 +412,7 @@ export class BottomBar extends React.Component {
|
|||||||
<div
|
<div
|
||||||
key="creator"
|
key="creator"
|
||||||
id="creator"
|
id="creator"
|
||||||
className={classnames(
|
className={classnames("item", "primary")}
|
||||||
"item",
|
|
||||||
"primary",
|
|
||||||
)}
|
|
||||||
onClick={openCreator}
|
onClick={openCreator}
|
||||||
>
|
>
|
||||||
<div className="icon">
|
<div className="icon">
|
||||||
@ -441,9 +441,7 @@ export class BottomBar extends React.Component {
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="icon">
|
<div className="icon">{createIconRender("FiHome")}</div>
|
||||||
{createIconRender("FiHome")}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@ -452,9 +450,7 @@ export class BottomBar extends React.Component {
|
|||||||
className="item"
|
className="item"
|
||||||
onClick={app.controls.openSearcher}
|
onClick={app.controls.openSearcher}
|
||||||
>
|
>
|
||||||
<div className="icon">
|
<div className="icon">{createIconRender("FiSearch")}</div>
|
||||||
{createIconRender("FiSearch")}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<AccountButton ref={this.accountBtnRef} />
|
<AccountButton ref={this.accountBtnRef} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user