-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mespapiers): Add
ScanResultTitle
component
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
packages/cozy-mespapiers-lib/src/components/ModelSteps/ScanResultTitle.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react' | ||
|
||
import { useI18n } from 'cozy-ui/transpiled/react/I18n' | ||
import Icon from 'cozy-ui/transpiled/react/Icon' | ||
import Typography from 'cozy-ui/transpiled/react/Typography' | ||
import { makeStyles } from 'cozy-ui/transpiled/react/styles' | ||
|
||
const useStyles = makeStyles(() => ({ | ||
typography: { | ||
color: 'var(--successColor)', | ||
marginLeft: '0.5rem' | ||
} | ||
})) | ||
|
||
const ScanResultTitle = () => { | ||
const styles = useStyles() | ||
const { t } = useI18n() | ||
|
||
return ( | ||
<div className="u-flex u-flex-items-center u-flex-justify-center u-mb-1-half"> | ||
<Icon | ||
icon="check-circle" | ||
color="var(--successColor)" | ||
aria-hidden="true" | ||
/> | ||
<Typography variant="h4" className={styles.typography} role="status"> | ||
{t('Acquisition.success')} | ||
</Typography> | ||
</div> | ||
) | ||
} | ||
|
||
export default ScanResultTitle |