Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
safetcut-app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
atichat
safetcut-app
Commits
8b082b3a
Commit
8b082b3a
authored
Oct 03, 2019
by
Tonk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
77afa811
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
14 deletions
+22
-14
components/Form/ForgotPasswordForm.js
+3
-3
components/MeterCard.js
+2
-2
constants/Styles.js
+1
-1
screens/Private/SmartMeterScreen/McbLinkScreen.js
+2
-2
screens/Private/SmartMeterScreen/McbLinkSettingScreen.js
+6
-0
screens/Public/ForgotPasswordScreen.js
+4
-2
screens/Public/RegisterScreen.js
+4
-4
No files found.
components/Form/ForgotPasswordForm.js
View file @
8b082b3a
...
...
@@ -3,6 +3,7 @@ import { Field, reduxForm } from 'redux-form';
import
Input
from
'./Input'
;
import
GradientBtn
from
'../GradientBtn'
;
import
{
theme
}
from
'../../constants/Styles'
;
import
{
View
}
from
'react-native'
;
// validation
const
required
=
value
=>
(
value
?
undefined
:
'This is a required field.'
);
...
...
@@ -17,7 +18,7 @@ const email = value =>
class
ForgotPassword
extends
Component
{
render
()
{
return
(
<>
<
View
style
=
{
theme
.
mt1
}
>
<
Field
forwardRef
ref
=
{
c
=>
(
this
.
email
=
c
)}
...
...
@@ -27,10 +28,9 @@ class ForgotPassword extends Component {
component
=
{
Input
}
validate
=
{[
required
,
email
]}
placeholder
=
"E-mail"
style
=
{
theme
.
containerWithVerticalMargin
}
/>
<
GradientBtn
onPress
=
{
this
.
props
.
handleSubmit
}
title
=
{
'send'
}
/
>
<
/
>
<
/
View
>
);
}
}
...
...
components/MeterCard.js
View file @
8b082b3a
...
...
@@ -33,12 +33,12 @@ const MeterCard = ({ item, onPressEachCard, data, isFocused, ...rest }) => {
const
renderContent
=
()
=>
(
<>
<
View
{
/*
<View
style={[
styles.meterOn,
{ backgroundColor: breakerStatus === 1 ? 'rgba(65, 204, 0, 0.59)' : 'rgba(223, 0, 0, 0.59)' },
]}
/
>
/>
*/
}
{
/* <View style={[styles.meterOnInner, { backgroundColor: breakerStatus === 1 ? 'rgba(65, 204, 0, 0.2)' : 'rgba(223, 0, 0, 0.2)'}]} /> */
}
<
View
style
=
{[
theme
.
centerContainer
,
{
paddingLeft
:
10
}]}
>
{
item
.
img
?
(
...
...
constants/Styles.js
View file @
8b082b3a
...
...
@@ -38,7 +38,7 @@ export const theme = StyleSheet.create({
},
introContainer
:
{
top
:
'12%'
,
paddingHorizontal
:
50
,
paddingHorizontal
:
25
,
},
flexContainer
:
{
flex
:
1
,
...
...
screens/Private/SmartMeterScreen/McbLinkScreen.js
View file @
8b082b3a
...
...
@@ -367,7 +367,7 @@ class McbLinkScreen extends React.Component {
<
Text
style
=
{[
theme
.
normalText
]}
>
Select
Device
’
s
icon
<
/Text
>
<
FlatList
data
=
{
formatGridData
(
listDeviceIcon
)}
style
=
{[
theme
.
mt1
,
{
paddingBottom
:
isIphoneX
()
?
80
:
45
}]}
style
=
{[
theme
.
mt1
,
{
paddingBottom
:
isIphoneX
()
?
80
:
45
,
paddingHorizontal
:
1
}]}
numColumns
=
{
4
}
renderItem
=
{({
item
,
index
})
=>
{
if
(
item
.
type
===
'empty'
)
{
...
...
@@ -381,7 +381,7 @@ class McbLinkScreen extends React.Component {
{
backgroundColor
:
item
.
type
===
deviceType
?
color
.
primary
:
color
.
white
,
marginVertical
:
10
,
marginVertical
:
5
,
marginRight
:
(
index
+
1
)
%
4
?
10
:
0
,
marginLeft
:
0
,
},
...
...
screens/Private/SmartMeterScreen/McbLinkSettingScreen.js
View file @
8b082b3a
...
...
@@ -50,7 +50,13 @@ class McbLinkSettingScreen extends React.Component {
style
=
{
styles
.
listContainer
}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'EditMcbLink'
,
{
item
,
mcbIndex
,
subIndex
})}
>
<
View
>
<
Text
style
=
{[
theme
.
smallTitle
,
theme
.
textDark
]}
>
{
item
.
name
}
<
/Text
>
{
item
.
type
===
'subBreaker'
&&
(
<
Text
style
=
{[
theme
.
description
]}
>
{
`Sub Breaker
${
subIndex
+
1
}
`
}
<
/Text
>
)}
<
/View
>
<
Icon
name
=
"chevron-thin-right"
type
=
"Entypo"
style
=
{
styles
.
iconStyle
}
/
>
<
/TouchableOpacity
>
);
...
...
screens/Public/ForgotPasswordScreen.js
View file @
8b082b3a
...
...
@@ -30,8 +30,10 @@ export default class ForgotPasswordScreen extends Component {
<
View
style
=
{
theme
.
introContainer
}
>
<
Text
style
=
{[
theme
.
title
,
theme
.
centerText
]}
>
Forgot
Password
<
/Text
>
<
View
style
=
{{
marginTop
:
40
}}
>
<
Text
style
=
{
theme
.
normalText
}
>
Please
enter
your
email
address
.
<
/Text
>
<
Text
style
=
{
theme
.
normalText
}
>
You
will
receive
a
link
to
create
a
new
password
via
email
.
<
/Text
>
<
Text
style
=
{[
theme
.
normalText
,
theme
.
centerText
]}
>
Please
enter
your
email
address
.
<
/Text
>
<
Text
style
=
{[
theme
.
normalText
,
theme
.
centerText
]}
>
You
will
receive
a
link
to
create
a
new
password
via
email
.
<
/Text
>
<
/View
>
<
ForgotPasswordForm
onSubmit
=
{
this
.
handleSubmit
}
/
>
<
/View
>
...
...
screens/Public/RegisterScreen.js
View file @
8b082b3a
...
...
@@ -58,11 +58,11 @@ class RegisterScreen extends Component {
render
()
{
return
(
<
View
style
=
{[
theme
.
flexContainer
]}
>
<
Text
style
=
{[
theme
.
title
,
{
paddingHorizontal
:
50
}]}
>
Register
<
/Text
>
<
ScrollView
contentContainerStyle
=
{{
paddingHorizontal
:
50
}}
>
<
View
style
=
{[
theme
.
flexContainer
,
theme
.
mt1
]}
>
<
Text
style
=
{[
theme
.
title
,
{
paddingHorizontal
:
25
}]}
>
Register
<
/Text
>
<
ScrollView
contentContainerStyle
=
{{
paddingHorizontal
:
25
}}
>
<
RegisterForm
onSubmit
=
{
this
.
submit
}
>
<
View
style
=
{
theme
.
rowContainer
}
>
<
View
style
=
{
[
theme
.
rowContainer
,
theme
.
mt1
]
}
>
<
CheckBox
color
=
{
color
.
grey
}
checked
=
{
this
.
state
.
isCheck
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment