Skip to content

Commit

Permalink
update name of sender and receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
corscheparrera committed Jun 21, 2018
1 parent 3d8924e commit f6b22fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from "react";
import styled from "styled-components";

const avocat = {
name: "Maître Harvey"
email: "Maître Harvey"
};

const TitleChat = styled.h1`
Expand Down
8 changes: 1 addition & 7 deletions src/components/ChatInput.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import {
Button,
ControlLabel,
Form,
FormControl,
FormGroup
} from "react-bootstrap";
import React, { Component } from "react";

import { Button } from "react-bootstrap";
import fire from "./Firebase.js";
import firebase from "firebase";

Expand Down
5 changes: 2 additions & 3 deletions src/components/Messages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Moment from "react-moment";
import React from "react";

const msgStyleLawyer = {
color: "#FFFFFF",
backgroundColor: "#0074D9",
Expand All @@ -25,12 +24,12 @@ function renderMessanges(data, i) {
return (
<div
style={
data.user.name === "Maître Harvey" ? msgStyleLawyer : msgStyleClient
data.user.email === "Maître Harvey" ? msgStyleLawyer : msgStyleClient
}
key={i}
>
<div>
{data.user.name}: {data.text}
{data.user.email}: {data.text}
</div>
<div>
<Moment fromNow>{data.createdAt}</Moment>
Expand Down

0 comments on commit f6b22fc

Please sign in to comment.