Skip to content

Commit

Permalink
issue #408
Browse files Browse the repository at this point in the history
  • Loading branch information
GiladSchneider committed Sep 24, 2024
1 parent 3691f8e commit f741e24
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/telemed-intake/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import ConfirmDateOfBirth from './pages/ConfirmDateOfBirth';
import ThankYou from './pages/ThankYou';
import { useTranslation } from 'react-i18next';
import ScheduleSelect from './pages/ScheduleSelect';
import Version from './pages/Version';

const isLowerEnvs =
import.meta.env.MODE === 'dev' ||
Expand Down Expand Up @@ -83,6 +84,8 @@ export class IntakeFlowPageRoute {
static readonly InvitedVideoCall = new IntakeFlowPageRoute('/invited-video-call', <VideoChatPage />);
static readonly ThankYou = new IntakeFlowPageRoute('/thank-you', <ThankYou />);

static readonly Version = new IntakeFlowPageRoute('/version', <Version />);

static readonly IOSPatientPhotosEdit = new IntakeFlowPageRoute('/ios-patient-photos', <IOSPatientPhotosEditPage />);
static readonly IOSPatientManageParticipants = new IntakeFlowPageRoute(
'/ios-manage-participants',
Expand Down Expand Up @@ -110,6 +113,7 @@ function App(): JSX.Element {
<Router>
<ScrollToTop />
<Routes>
<Route path={IntakeFlowPageRoute.Version.path} element={IntakeFlowPageRoute.Version.page} />
<Route path={IntakeFlowPageRoute.AuthPage.path} element={IntakeFlowPageRoute.AuthPage.page} />
<Route path={IntakeFlowPageRoute.Welcome.path} element={IntakeFlowPageRoute.Welcome.page} />
<Route
Expand Down
22 changes: 22 additions & 0 deletions packages/telemed-intake/app/src/pages/Version.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const Version = (): JSX.Element => {
const { VITE_APP_ENV, VITE_APP_SHA, VITE_APP_VERSION } = import.meta.env;

return (
<div>
<p>
Env:
{VITE_APP_ENV}
</p>
<p>
Hash:
{VITE_APP_SHA}
</p>
<p>
Version:
{VITE_APP_VERSION}
</p>
</div>
);
};

export default Version;

0 comments on commit f741e24

Please sign in to comment.