🎉 Completed MVP

This commit is contained in:
Liyas Thomas
2020-01-22 07:27:38 +05:30
parent 43d95a2271
commit a7cd6395b7
6 changed files with 97 additions and 17 deletions

View File

@@ -25,13 +25,14 @@ export const fb = {
feedsInFeed: [],
currentUser: {},
currentSettings: [],
writeFeed: async message => {
writeFeed: async (message, label) => {
const dt = {
createdOn: new Date(),
author: fb.currentUser.uid,
author_name: fb.currentUser.displayName,
author_image: fb.currentUser.photoURL,
message
message,
label
};
try {
return feedsCollection.add(dt);
@@ -45,6 +46,7 @@ export const fb = {
.delete()
.catch(e => console.error("error deleting", dt, e)),
writeSettings: async (setting, value) => {
console.log(value);
const st = {
updatedOn: new Date(),
author: fb.currentUser.uid,