Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
181
Merge Requests
17
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
035cc4ff
Commit
035cc4ff
authored
23 minutes ago
by
Martin Santangelo
Browse files
Options
Download
(fix) top bar
parent
ee374204
goal/email-verification
1 merge request
!463
WIP: Email Confirmation
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
30 deletions
+26
-30
src/topbar/Topbar.js
View file @
035cc4ff
...
...
@@ -19,7 +19,6 @@ import featuresService from '../common/services/features.service';
import
{
SafeAreaView
}
from
'
react-navigation
'
;
import
isIphoneX
from
'
../common/helpers/isIphoneX
'
;
import
testID
from
'
../common/helpers/testID
'
;
import
EmailConfirmation
from
'
./EmailConfirmation
'
;
const
forceInset
=
isIphoneX
?
{
top
:
32
}
:
null
...
...
@@ -34,40 +33,37 @@ export default class Topbar extends Component {
render
()
{
return
(
<
SafeAreaView
forceInset
=
{
forceInset
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
topbar
}
>
<
SafeAreaView
style
=
{
styles
.
container
}
forceInset
=
{
forceInset
}
>
<
View
style
=
{
styles
.
topbar
}
>
{
featuresService
.
has
(
'
crypto
'
)
&&
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'
BoostConsole
'
,
{
navigation
:
this
.
props
.
navigation
})}
{...
testID
(
'
boost-console button
'
)}
>
<
View
style
=
{
styles
.
topbarLeft
}
>
<
Icon
name
=
"
trending-up
"
size
=
{
22
}
color
=
'
#444
'
style
=
{
styles
.
button
}
/
>
<
/View
>
<
/TouchableOpacity>
}
<
View
style
=
{
styles
.
topbarCenter
}
>
{
this
.
props
.
user
.
me
&&
<
Avatar
rounded
source
=
{{
uri
:
MINDS_CDN_URI
+
'
icon/
'
+
this
.
props
.
user
.
me
.
guid
+
'
/medium/
'
+
this
.
props
.
user
.
me
.
icontime
}}
width
=
{
38
}
height
=
{
38
}
onPress
=
{()
=>
this
.
props
.
navigation
.
push
(
'
Channel
'
,
{
guid
:
this
.
props
.
user
.
me
.
guid
})}
testID
=
"
AvatarButton
"
/>
}
{
featuresService
.
has
(
'
crypto
'
)
&&
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'
BoostConsole
'
,
{
navigation
:
this
.
props
.
navigation
})}
{...
testID
(
'
boost-console button
'
)}
>
<
View
style
=
{
styles
.
topbarLeft
}
>
<
Icon
name
=
"
trending-up
"
size
=
{
22
}
color
=
'
#444
'
style
=
{
styles
.
button
}
/
>
<
/View
>
<
/TouchableOpacity>
}
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'
More
'
,
{
navigation
:
this
.
props
.
navigation
})}
{...
testID
(
'
Main menu button
'
)}
>
<
View
style
=
{
styles
.
topbarRight
}
>
<
Icon
name
=
"
menu
"
size
=
{
22
}
color
=
'
#444
'
style
=
{
styles
.
button
}
/
>
<
/View
>
<
/TouchableOpacity
>
{
!
featuresService
.
has
(
'
crypto
'
)
&&
<
View
style
=
{
styles
.
topbarLeft
}
/>
}
<
View
style
=
{
styles
.
topbarCenter
}
>
{
this
.
props
.
user
.
me
&&
<
Avatar
rounded
source
=
{{
uri
:
MINDS_CDN_URI
+
'
icon/
'
+
this
.
props
.
user
.
me
.
guid
+
'
/medium/
'
+
this
.
props
.
user
.
me
.
icontime
}}
width
=
{
38
}
height
=
{
38
}
onPress
=
{()
=>
this
.
props
.
navigation
.
push
(
'
Channel
'
,
{
guid
:
this
.
props
.
user
.
me
.
guid
})}
testID
=
"
AvatarButton
"
/>
}
<
/View
>
<
/View
>
<
View
>
<
EmailConfirmation
user
=
{
this
.
props
.
user
}
/
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'
More
'
,
{
navigation
:
this
.
props
.
navigation
})}
{...
testID
(
'
Main menu button
'
)}
>
<
View
style
=
{
styles
.
topbarRight
}
>
<
Icon
name
=
"
menu
"
size
=
{
22
}
color
=
'
#444
'
style
=
{
styles
.
button
}
/
>
<
/View
>
<
/TouchableOpacity
>
<
/View
>
<
/SafeAreaView
>
);
...
...
This diff is collapsed.
Please
register
or
sign in
to comment