Skip to content

Commit

Permalink
Added Auto Deploy to Netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyowen committed Feb 27, 2021
1 parent 46a4c18 commit c8ceea4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions client/public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200
2 changes: 1 addition & 1 deletion client/src/components/Chat/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Chat = ({ location }) => {
const [users, setUsers] = useState([]);
const [message, setMessage] = useState('');
const [messages, setMessages] = useState([]);
const ENDPOINT = 'https://e76c276a8ec4c46e80cec9bd1a3b67.herokuapp.com/';
const ENDPOINT = 'https://chatapp-clone-api.herokuapp.com/';

useEffect(() => {
const { name, room } = queryString.parse(location.search);
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Join/Join.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Join = () => {
<div><input placeholder="Initial Name" className="joinInput" type="text" onChange={(event) => setName(event.target.value)} /></div>
<div><input placeholder="Room Name" className="joinInput mt-20" type="text" onChange={(event) => setRoom(event.target.value)} /></div>
<Link onClick={event => (!name || !room) ? event.preventDefault() : null} to={`/chat?name=${name}&room=${room}`}>
<button className="button mt-20" type="submit">Sign in</button>
<button className="button mt-20" type="submit">Join Room</button>
</Link>
</div>
</div>
Expand Down

0 comments on commit c8ceea4

Please sign in to comment.