Skip to content

Commit

Permalink
feat(slider): implement new slider from ui-lib, add tests for slider-…
Browse files Browse the repository at this point in the history
…based forms (#196)
  • Loading branch information
rahulkeerthi authored Jan 9, 2024
1 parent 31b12c9 commit 1830680
Show file tree
Hide file tree
Showing 9 changed files with 729 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hosted-pages",
"version": "0.0.79",
"version": "0.0.80",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -14,7 +14,7 @@
},
"dependencies": {
"@apollo/client": "^3.8.6",
"@awell-health/ui-library": "0.1.35",
"@awell-health/ui-library": "0.1.37",
"@formsort/react-embed": "^3.1.1",
"@sentry/nextjs": "^7.59.3",
"date-fns": "^2.29.3",
Expand Down
5 changes: 5 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ const Home: NextPageWithLayout = () => {
<HostedPageLayout
logo={defaultTo(branding?.logo_url, awell_logo)}
onCloseHostedPage={onOpenCloseHostedSessionModal}
hideCloseButton={
(session.status === HostedSessionStatus.Completed ||
session.status === HostedSessionStatus.Expired) &&
shouldRedirect === false
}
>
{/* Show static success page if success URL is not available */}
{shouldRedirect === false &&
Expand Down
3 changes: 3 additions & 0 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"select": {
"search_placeholder": "Search for an option",
"no_options": "No options found"
},
"slider": {
"tooltip_guide": "Touch to indicate your answer"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions spec/mocks/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './activities'
export * from './testFormFixture'
Loading

0 comments on commit 1830680

Please sign in to comment.