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
096f255a
Commit
096f255a
authored
Sep 04, 2019
by
Tonk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b2b7dfee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
screens/Private/HistoryScreen/Tooltip.js
+1
-1
screens/Private/SettingScreen/WifiSelectScreen.js
+3
-3
No files found.
screens/Private/HistoryScreen/Tooltip.js
View file @
096f255a
...
@@ -17,7 +17,7 @@ const Tooltip = ({ x, y, tooltipX, tooltipY, index, dataLength }) => {
...
@@ -17,7 +17,7 @@ const Tooltip = ({ x, y, tooltipX, tooltipY, index, dataLength }) => {
return
(
return
(
<
G
x
=
{
x
(
tooltipX
)
-
40
}
y
=
{
y
(
tooltipY
)}
>
<
G
x
=
{
x
(
tooltipX
)
-
40
}
y
=
{
y
(
tooltipY
)}
>
<
G
y
=
{
tooltipY
>
7
?
20
:
-
29
}
x
=
{
xAxis
}
>
<
G
y
=
{
y
(
tooltipY
)
>
150
?
-
40
:
20
}
x
=
{
xAxis
}
>
<
Rect
x
=
{
-
2
}
y
=
{
0
}
height
=
{
22
}
width
=
{
80
}
fill
=
"#ee5454"
ry
=
{
10
}
rx
=
{
10
}
><
/Rect
>
<
Rect
x
=
{
-
2
}
y
=
{
0
}
height
=
{
22
}
width
=
{
80
}
fill
=
"#ee5454"
ry
=
{
10
}
rx
=
{
10
}
><
/Rect
>
<
Text
x
=
{
6
}
y
=
{
14
}
stroke
=
"white"
>
<
Text
x
=
{
6
}
y
=
{
14
}
stroke
=
"white"
>
{
tooltipY
}
KWh
{
tooltipY
}
KWh
...
...
screens/Private/SettingScreen/WifiSelectScreen.js
View file @
096f255a
import
React
from
'react'
;
import
React
from
'react'
;
import
{
Text
,
Icon
}
from
'native-base'
;
import
{
Text
,
Icon
}
from
'native-base'
;
import
{
ScrollView
,
FlatList
}
from
'react-native-gesture-handler'
;
import
{
ScrollView
,
FlatList
,
TouchableOpacity
}
from
'react-native-gesture-handler'
;
import
{
View
,
StyleSheet
}
from
'react-native'
;
import
{
View
,
StyleSheet
}
from
'react-native'
;
import
{
theme
,
color
}
from
'../../../constants/Styles'
;
import
{
theme
,
color
}
from
'../../../constants/Styles'
;
import
{
HeaderButtons
,
Item
}
from
'react-navigation-header-buttons'
;
import
{
HeaderButtons
,
Item
}
from
'react-navigation-header-buttons'
;
...
@@ -37,7 +37,7 @@ export default class WifiSelectScreen extends React.Component {
...
@@ -37,7 +37,7 @@ export default class WifiSelectScreen extends React.Component {
}
}
renderWifiCard
(
item
)
{
renderWifiCard
(
item
)
{
return
(
return
(
<
View
<
TouchableOpacity
style
=
{[
style
=
{[
styles
.
cardContainer
,
styles
.
cardContainer
,
{
{
...
@@ -59,7 +59,7 @@ export default class WifiSelectScreen extends React.Component {
...
@@ -59,7 +59,7 @@ export default class WifiSelectScreen extends React.Component {
<
Icon
name
=
"wifi"
type
=
"FontAwesome"
style
=
{
styles
.
iconStyle
}
/
>
<
Icon
name
=
"wifi"
type
=
"FontAwesome"
style
=
{
styles
.
iconStyle
}
/
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/
View
>
<
/
TouchableOpacity
>
);
);
}
}
render
()
{
render
()
{
...
...
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