From 4677f189e26b06d09b3223e7d5cbbe744bc81547 Mon Sep 17 00:00:00 2001
From: "Alejandro M. Coca"
Date: Fri, 3 Sep 2021 19:17:36 -0400
Subject: [PATCH 1/6] Add walk icon
---
src/assets/walk-icon.svg | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 src/assets/walk-icon.svg
diff --git a/src/assets/walk-icon.svg b/src/assets/walk-icon.svg
new file mode 100644
index 0000000..42a4af9
--- /dev/null
+++ b/src/assets/walk-icon.svg
@@ -0,0 +1,3 @@
+
From 1c00028465d85ae93f70ec5883bdfed401978129 Mon Sep 17 00:00:00 2001
From: "Alejandro M. Coca"
Date: Fri, 3 Sep 2021 19:18:21 -0400
Subject: [PATCH 2/6] Working with Settings & Slider
---
src/pages/SettingsPage.js | 64 ++++++++++++++++++++++++---------------
1 file changed, 40 insertions(+), 24 deletions(-)
diff --git a/src/pages/SettingsPage.js b/src/pages/SettingsPage.js
index 99f1cf5..66867cc 100644
--- a/src/pages/SettingsPage.js
+++ b/src/pages/SettingsPage.js
@@ -2,7 +2,9 @@ import React, { useContext } from 'react';
import ReactSlider from 'react-slider';
import { HeaderNav } from '../components/HeaderNav';
-
+import { ReactComponent as WalkIcon } from '../assets/walk-icon.svg';
+import { ReactComponent as CarIcon } from '../assets/car-icon.svg';
+import { ReactComponent as BicycleIcon } from '../assets/bicycle-icon.svg';
import { LocationsContext } from '../context/LocationsContext';
import { MapCenterContext } from '../context/MapCenterContext';
@@ -18,18 +20,27 @@ export const SettingsPage = () => {
<>
-
Settings
-
- {userLocationShared
- ? `Adjust how frequently the app
+
SETTINGS
+
+ {userLocationShared ? (
+
+
+ Adjust how frequently the app refreshes with new information.
+
+
+
+ This is effective when you are actively sharing your location,
+ and can improve battery life of your device.
+
+
+ ) : (
+ `Please share your location to adjust how frequently the app
refreshes with new data`
- : `Please share your location to adjust how frequently the app
- refreshes with new data`}
-
-
- {userLocationShared ? (
- <>
-
+ )}
+
+
+ {userLocationShared ? (
+ <>
{
{state.valueNow}
)}
/>
+
+
+
+
Car / Train
+
+
+
+
Bicycle
+
+
+
+
Walk
+
+
-
-
- Recommended settings are based on expected speed of transportation
-