Skip to content

Commit

Permalink
WJ-81 - New: Aplication version;
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Teixeira committed Oct 18, 2020
1 parent 16f211a commit 15ae346
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ REACT_APP_API_URL=
REACT_APP_TMDB_API_URL=
REACT_APP_TMDB_API_KEY=
REACT_APP_TMDB_IMAGE_URL=

REACT_APP_VERSION=$npm_package_version
REACT_APP_NAME=$npm_package_name
4 changes: 3 additions & 1 deletion src/components/EnvironmentLabel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const EnvironmentLabel: React.FC = () => {
return null;
}

return <Container>Ambiente: Desenvolvimento</Container>;
const version = process.env.REACT_APP_VERSION;

return <Container>Versão: {version} | Ambiente: Desenvolvimento</Container>;
};

export default EnvironmentLabel;

0 comments on commit 15ae346

Please sign in to comment.