Skip to content

Commit

Permalink
Merge pull request #82 from 90lucasgabriel/feature/WJ-81
Browse files Browse the repository at this point in the history
WJ-81 - Add version to EnvironmentLabel
  • Loading branch information
90lucasgabriel committed Oct 18, 2020
2 parents d0cc35d + cec0c86 commit 158a98c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/EnvironmentLabel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
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;
}

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

export default EnvironmentLabel;

0 comments on commit 158a98c

Please sign in to comment.