finalizing non-docker env

This commit is contained in:
Elijah Lucian 2021-07-15 16:23:48 -06:00
parent 99ed535e3e
commit c2c20a5c48
3 changed files with 5 additions and 3 deletions

View File

@ -23,6 +23,7 @@ services:
- 3000:3000 - 3000:3000
environment: environment:
CHOKIDAR_USEPOLLING: "true" CHOKIDAR_USEPOLLING: "true"
REACT_APP_API_URL: "/api"
command: ["npm", "run", "start"] command: ["npm", "run", "start"]
server: server:

View File

@ -1 +1,2 @@
REACT_APP_API_URL= # overwritten in docker-compose
REACT_APP_API_URL=http://localhost:8000

View File

@ -3,13 +3,13 @@ import { useUserContext } from '../../contexts/UserContext'
import './style.scss' import './style.scss'
export const AppFooter = () => { export const AppFooter = () => {
const { user, selectedAccount } = useUserContext() const { user } = useUserContext()
return ( return (
<footer> <footer>
<p>User: {user?.name}</p> <p>User: {user?.name}</p>
<p>|</p> <p>|</p>
<p>Budget: {selectedAccount?.name}</p> <p>Budget:</p>
<p>|</p> <p>|</p>
</footer> </footer>
) )