diff --git a/.env.example b/.env.example index dd6c1ac..7fcf791 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/src/components/EnvironmentLabel/index.tsx b/src/components/EnvironmentLabel/index.tsx index 7aa4fe0..2fc7741 100644 --- a/src/components/EnvironmentLabel/index.tsx +++ b/src/components/EnvironmentLabel/index.tsx @@ -1,5 +1,6 @@ import React from 'react'; +import { version } from '../../../package.json'; import { Container } from './styles'; const EnvironmentLabel: React.FC = () => { @@ -7,8 +8,6 @@ const EnvironmentLabel: React.FC = () => { return null; } - const version = process.env.REACT_APP_VERSION; - return Versão: {version} | Ambiente: Desenvolvimento; };