Skip to content

Commit

Permalink
WJ-81 - Update: remove version from .env;
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Teixeira committed Oct 18, 2020
1 parent 15ae346 commit cec0c86
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ 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
3 changes: 1 addition & 2 deletions src/components/EnvironmentLabel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import React from 'react';

import { version } from '../../../package.json';
import { Container } from './styles';

const EnvironmentLabel: React.FC = () => {
if (process.env.REACT_APP_IS_PRODUCTION === 'true') {
return null;
}

const version = process.env.REACT_APP_VERSION;

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

Expand Down

0 comments on commit cec0c86

Please sign in to comment.