-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/ocrvs 7978/qr reader #8196
base: develop
Are you sure you want to change the base?
Conversation
/uikit |
/uikit |
Storybook deployed: https://feat-ocrvs-7978-qr-reader.opencrvs.pages.dev |
display: flex; | ||
align-items: center; | ||
width: ${width || '100%'}; | ||
|
||
:before, :after { | ||
flex: 1; | ||
content: ''; | ||
padding: 0 1px 1px; | ||
background-color: ${color || theme.colors.grey200}; | ||
margin: 16px; | ||
} | ||
|
||
:before { | ||
margin-left: 0; | ||
} | ||
|
||
:after { | ||
margin-right: 0; | ||
} | ||
` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically what does this do if Divider has children? Could this be documented in Storybook 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const renderReader = (reader: ReaderType) => { | ||
const { type, ...readerProps } = reader | ||
if (type === 'qr') { | ||
return ( | ||
<QRReader | ||
key={type} | ||
{...readerProps} | ||
onScan={onScan} | ||
onError={onError} | ||
/> | ||
) | ||
} else return null | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a "ReaderGenerator" (like FormFieldGenerator), can be lifted to a separate component so it doesn't get re-created on every render of IDReader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I am on it 👍🏼
<Icon name={props.iconName} size="large" /> | ||
</IconContainer> | ||
<Text variant="reg14" element="p"> | ||
{props.label} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{props.label} | |
{children} |
const StyledButton = styled(SecondaryButton)` | ||
width: 100%; | ||
` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Button
component instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thanks. will do
…ders, i.e. QR, eSignet
Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:
|
No description provided.