diff --git a/src/components/Chat/Group.js b/src/components/Chat/Group.js
index 32d9692..7d5923f 100644
--- a/src/components/Chat/Group.js
+++ b/src/components/Chat/Group.js
@@ -6,12 +6,13 @@ import Firebase from 'firebase';
//import config from '../../firebaseConfig';
const database = Firebase.database();
export default class Group extends Component {
+
constructor() {
super();
this.state = {
groups: [],
- groupname: ''
+ groupname: ''
};
}
@@ -41,7 +42,7 @@ export default class Group extends Component {
render() {
return(
-
+
@@ -52,4 +53,5 @@ export default class Group extends Component {
);
}
-}
\ No newline at end of file
+
+}
diff --git a/src/components/Chat/index.js b/src/components/Chat/index.js
index 676dea2..b75efe4 100644
--- a/src/components/Chat/index.js
+++ b/src/components/Chat/index.js
@@ -3,7 +3,8 @@ import ReactDOM from 'react-dom';
import './index.css';
import App from '../App';
import User from './User';
-
+import Chat from './Chat/Chat'
+
import Group from './Group';
import { HashRouter, Route } from 'react-router-dom'
@@ -15,6 +16,8 @@ ReactDOM.render(
-
+
+
+
, document.getElementById('root'));
registerServiceWorker.unregister();
\ No newline at end of file
diff --git a/src/components/HomeComponent.js b/src/components/HomeComponent.js
index fbe6601..0c13c30 100644
--- a/src/components/HomeComponent.js
+++ b/src/components/HomeComponent.js
@@ -1,6 +1,8 @@
import React , { Component } from 'react';
import 'bootstrap/dist/css/bootstrap.css';
//import { Button } from 'reactstrap';
+import '../App.css';
+
import { Card, CardImg, CardImgOverlay, CardText,CardBody, CardTitle } from 'reactstrap';
import HomeDetail from './HomedetailedComponent';
class Home extends Component{
@@ -51,7 +53,7 @@ class Home extends Component{
);
});
return(
-
+
{this.renderWeb(this.state.selectedWeb)}
diff --git a/src/components/HomedetailedComponent.js b/src/components/HomedetailedComponent.js
index 717b5b5..58cfdf3 100644
--- a/src/components/HomedetailedComponent.js
+++ b/src/components/HomedetailedComponent.js
@@ -2,7 +2,12 @@ import React from 'react';
import 'bootstrap/dist/css/bootstrap.css';
import { Button } from 'reactstrap';
import { Card, CardImg, CardText, CardBody, CardTitle } from 'reactstrap';
-import Group from './Chat/Group.js'
+import Group from './Chat/Group'
+import Chat from './Chat/Chat';
+import history from './history';
+import ReactDOM from 'react-dom';
+import './Chat/Chat'
+import { BrowserRouter, Route, Switch } from 'react-router-dom';
function RenderWeb({web}) {
return(
@@ -18,15 +23,27 @@ import Group from './Chat/Group.js'
}
function renderWeb(web){
if(web!=null){
- return(
+ history.push('/'+web.name);
+ localStorage.setItem('chat_groupname', web.name);
+ /*return(
);
}
}
@@ -41,7 +58,7 @@ import Group from './Chat/Group.js'
-
diff --git a/src/components/history.js b/src/components/history.js
new file mode 100644
index 0000000..af4ad1e
--- /dev/null
+++ b/src/components/history.js
@@ -0,0 +1,3 @@
+import { createBrowserHistory as history} from 'history';
+
+export default history();
\ No newline at end of file
diff --git a/src/components/webtools.js b/src/components/webtools.js
index fec37d6..c13815c 100644
--- a/src/components/webtools.js
+++ b/src/components/webtools.js
@@ -4,40 +4,40 @@ export const WEB =
id: 0,
name:'C++',
image: 'assets/images/c++.png',
- description:'A unique combination of Indian Uthappam (pancake) and Italian pizza, topped with Cerignola olives, ripe vine cherry tomatoes, Vidalia onion, Guntur chillies and Buffalo Paneer.',
+ description:'C++ is an Object Oriented Programming Language (OOPL) and is a highly Flexible language with Versatility. It can be used for developing System Software.',
},
{
id: 1,
name:'python',
image: 'assets/images/python.jpg',
- description:'Deep fried Zucchini coated with mildly spiced Chickpea flour batter accompanied with a sweet-tangy tamarind sauce',
+ description:'Python is an interpreted, object-oriented programming language, that has gained popularity because of its clear syntax and readability. It is said to be relatively easy to learn and portable.',
},
{
id: 2,
name:'react',
image: 'assets/images/react.png',
- description:'A quintessential ConFusion experience, is it a vada or is it a donut?',
+ description:'React is a library for building composable user interfaces. It encourages the creation of reusable UI components, which present data that changes over time.',
},
{
id: 3,
name:'Android Studio',
image: 'assets/images/android_studio.png',
- description:'A delectable, semi-sweet New York Style Cheese Cake, with Graham cracker crust and spiced with Indian cardamoms',
+ description:'Android Studio is Androids official IDE. It is purpose-built for Android to accelerate your development and help you build the highest-quality apps for every Android device.',
},
{
id: 4,
name:'flutter',
image: 'assets/images/flutter.png',
- description:'A quintessential ConFusion experience, is it a vada or is it a donut?',
+ description:'Flutter is an app SDK for building high-performance, high-fidelity apps for iOS, Android, web (beta), and desktop (technical preview) from a single codebase.',
},
{
id: 5,
name:'django',
image: 'assets/images/django.png',
- description:'A quintessential ConFusion experience, django is a python framework',
+ description:'Django is a high-level Python web framework that enables rapid development of secure and maintainable websites.',
}
];
\ No newline at end of file
diff --git a/src/firebaseConfig.js b/src/firebaseConfig.js
index 2c3f759..c458b9b 100644
--- a/src/firebaseConfig.js
+++ b/src/firebaseConfig.js
@@ -6,10 +6,14 @@
import firebase from 'firebase';
const config = {
- apiKey: '',
- authDomain: '',
- databaseURL: '',
- storageBucket: ''
+ apiKey: "AIzaSyBbJrhBSj3QC924fQkbRY-L2FYuPutsanA",
+ authDomain: "intcom-a33ee.firebaseapp.com",
+ databaseURL: "https://intcom-a33ee.firebaseio.com",
+ projectId: "intcom-a33ee",
+ storageBucket: "intcom-a33ee.appspot.com",
+ messagingSenderId: "147925101589",
+ appId: "1:147925101589:web:67d769ac6f96b126d0f21c"
+
};
const firebaseApp = firebase.initializeApp(config);
diff --git a/src/index.js b/src/index.js
index f5185c1..0f138e0 100644
--- a/src/index.js
+++ b/src/index.js
@@ -3,9 +3,14 @@ import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
-
+import { BrowserRouter, Route, Switch } from 'react-router-dom';
+import Chat from './components/Chat/Chat';
ReactDOM.render(
+
+
+
+ ,
document.getElementById('root')