mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 05:47:02 +00:00
remove color
This commit is contained in:
1 parent
61ab9196de
commit
7b1cb31d20
8 files changed
+18
-25
No files matched your search
@@ -61,17 +61,16 @@ const Account = createReactClass({
|
||||
render : function(){
|
||||
// Logged in
|
||||
if(global.account){
|
||||
return <div className='nav-section'>
|
||||
return <Dropdown groupName={global.account.username} customTrigger={<>{global.account.username}</>} icon={null} key={global.account.username}>
|
||||
<div className='nav-section'>
|
||||
<Nav.item
|
||||
href={`/user/${encodeURIComponent(global.account.username)}`}
|
||||
color='yellow'
|
||||
icon='fas fa-beer'
|
||||
>
|
||||
brews
|
||||
</Nav.item>
|
||||
<Nav.item
|
||||
className='account'
|
||||
color='orange'
|
||||
icon='fas fa-user'
|
||||
href='/account'
|
||||
>
|
||||
@@ -79,26 +78,26 @@ const Account = createReactClass({
|
||||
</Nav.item>
|
||||
<Nav.item
|
||||
className='logout'
|
||||
color='red'
|
||||
icon='fas fa-power-off'
|
||||
onClick={this.handleLogout}
|
||||
>
|
||||
logout
|
||||
</Nav.item>
|
||||
</div>;
|
||||
</div>
|
||||
</Dropdown>
|
||||
}
|
||||
|
||||
// Logged out
|
||||
// LOCAL ONLY
|
||||
if(global.config?.local) {
|
||||
return <Nav.item color='teal' icon='fas fa-sign-in-alt' onClick={this.localLogin}>
|
||||
return <Nav.item icon='fas fa-sign-in-alt' onClick={this.localLogin}>
|
||||
login
|
||||
</Nav.item>;
|
||||
};
|
||||
|
||||
// Logged out
|
||||
// Production site
|
||||
return <Nav.item href={`https://www.naturalcrit.com/login?redirect=${this.state.url}`} color='teal' icon='fas fa-sign-in-alt'>
|
||||
return <Nav.item href={`https://www.naturalcrit.com/login?redirect=${this.state.url}`} icon='fas fa-sign-in-alt'>
|
||||
login
|
||||
</Nav.item>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user