Skip to content

Commit 1a921ad

Browse files
Abigail WatsonAbigail Watson
Abigail Watson
authored and
Abigail Watson
committed
HealthCard UI; confirm fetch Innovative Express Clinic records
1 parent d0f25c6 commit 1a921ad

File tree

5 files changed

+43
-7
lines changed

5 files changed

+43
-7
lines changed

app/Styles.js

+11
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,18 @@ let rawStyles = {
257257
},
258258
divider: {
259259
height: '2px'
260+
},
261+
mainAppDialogPaper: {
262+
width: '100%',
263+
marginLeft: '0px',
264+
marginRight: '0px'
265+
},
266+
mainAppDialogContainer: {
267+
width: '100%',
268+
paddingLeft: '40px',
269+
paddingRight: '40px'
260270
}
271+
261272
}
262273

263274

app/core/QrScannerPage.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ export function QrScannerPage(props){
216216
}
217217

218218
return (
219-
<PageCanvas id='QrScannerPage' headerHeight={headerHeight} paddingLeft={paddingWidth} paddingRight={paddingWidth} style={{overflowX: 'hidden', marginBottom: '80px', background: 'transparent'}}>
220-
<Container maxWidth="md" style={{height: containerHeight}}>
219+
<PageCanvas id='QrScannerPage' headerHeight={headerHeight} paddingLeft={0} paddingRight={0} style={{overflowX: 'hidden', marginBottom: '80px', background: 'transparent'}}>
220+
<Container id="QrScannerContainer" maxWidth="lg" style={{height: containerHeight}}>
221221
<div style={{display: 'flex', flexDirection: 'column', justifyContent: 'space-between', height: '100%', paddingBottom: '20px'}}>
222222
<Button color="primary" variant="contained" onClick={activateCamera.bind(this)} style={{width: '100%', marginTop: '20px'}}>
223223
<CardHeader title="Scan Vaccine Code" />

app/layout/Dialog.jsx

+26-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ import LogoutDialog from '../core/LogoutDialog';
2020

2121
import { get } from 'lodash';
2222

23+
import theme from '../Theme';
2324
import logger from '../Logger';
25+
import useStyles from '../Styles';
2426

2527
// ==============================================================================
2628
// Dynamic Imports
@@ -69,13 +71,26 @@ if(Meteor.isClient){
6971
Session.setDefault('mainAppDialogJson', false);
7072
Session.setDefault('mainAppDialogErrorMessage', '');
7173
Session.setDefault('mainAppDialogErrorShowAgain', true);
72-
Session.setDefault('mainAppDialogmaxWidth', get(Meteor, 'settings.public.defaults.modals.maxWidth', "xl"));
74+
Session.setDefault('mainAppDialogMaxWidth', get(Meteor, 'settings.public.defaults.modals.maxWidth', "xl"));
7375

7476

7577
Session.setDefault('showDialogTitle', true);
7678
}
7779

7880
export default function ScrollDialog(props) {
81+
if(typeof logger === "undefined"){
82+
logger = props.logger;
83+
}
84+
85+
// ------------------------------------------------------------
86+
// Styling
87+
88+
let classes = useStyles();
89+
90+
91+
// ------------------------------------------------------------
92+
// State
93+
7994
let [open, setOpen] = React.useState(false);
8095
let [scroll, setScroll] = React.useState('paper');
8196

@@ -87,7 +102,7 @@ export default function ScrollDialog(props) {
87102
} = props;
88103

89104
maxWidth = useTracker(function(){
90-
return Session.get('mainAppDialogmaxWidth')
105+
return Session.get('mainAppDialogMaxWidth')
91106
}, []);
92107

93108

@@ -205,14 +220,22 @@ export default function ScrollDialog(props) {
205220
}
206221

207222
return (
208-
<div>
223+
<div id="mainDialogContainer">
209224
<Dialog
225+
id="mainDialog"
210226
open={open}
211227
onClose={handleClose}
212228
scroll={scroll}
213229
maxWidth={maxWidth}
214230
aria-labelledby="scroll-dialog-title"
215231
aria-describedby="scroll-dialog-description"
232+
classes={{
233+
container: classes.mainAppDialogContainer,
234+
paper: classes.mainAppDialogPaper
235+
}}
236+
style={{
237+
marginLeft: '0px', marginRight: '0px',
238+
paddingLeft: '0px', paddingRight: '0px'}}
216239
>
217240
{ dialogTitleToRender }
218241
{ dialogContentToRender }

packages/vaccine-wallet

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit a0ccb7211fbae8d854b54fd3027d54f80be7b6a5
1+
Subproject commit aff0bdf87e4156ec81ed97998eef4fe7192286c8

server/SmartHealthCards.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Meteor } from 'meteor/meteor';
2+
import { check } from 'meteor/check'
3+
24
import { HTTP } from 'meteor/http';
35
import { Random } from 'meteor/random';
46
import { get, has, findIndex } from 'lodash';
@@ -256,7 +258,7 @@ Meteor.methods({
256258
return shcNumericString;
257259
},
258260
parseHealthCard: async function(healthCardToken){
259-
check(healthCardToken, Object);
261+
check(healthCardToken, String);
260262
console.log('==============================================================================')
261263
console.log('parseHealthCard().healthCardToken', healthCardToken)
262264

0 commit comments

Comments
 (0)