You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,23 @@ Sample project motivated by [video by David East](https://www.youtube.com/watch?
8
8
- In this project I use [Reactfire](https://github.com/FirebaseExtended/reactfire), [Ionic Framework ReactJS Components](https://ionicframework.com/react) and [React-Hook-Form](https://react-hook-form.com/).
9
9
- We use the `<AuthCheck/>` component for cleaner routing when not logged in, See [App.tsx](https://github.com/aaronksaunders/ionic-react-hook-form-react-fire/blob/master/src/App.tsx)
10
10
- Currently there is only [Login](https://github.com/aaronksaunders/ionic-react-hook-form-react-fire/blob/master/src/pages/Login.tsx) and [Listing The Data Collection](https://github.com/aaronksaunders/ionic-react-hook-form-react-fire/blob/master/src/pages/Home.tsx)
11
-
- Will be adding create user, add items and delete items
11
+
- Will be adding delete items
12
+
13
+
### Saves The Following Data Structure
14
+
I am starting to integrated typescript into my examples since I am seeing questions about types popping up in the forums. The `IModalData` is the structure of the data that is written to firebase
15
+
```
16
+
type IModalData = {
17
+
podcastName: string;
18
+
podcastHost: string;
19
+
podcastURL: string;
20
+
};
21
+
22
+
export type IModalResponse = {
23
+
hasData: boolean;
24
+
data?: IModalData;
25
+
};
26
+
27
+
```
12
28
13
29
### Required
14
30
you must create a file called `src/env.js` and add the following code
0 commit comments