-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8586f46
commit fbda46d
Showing
12 changed files
with
9,007 additions
and
29,151 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"*.{js,jsx}": ["npm run lint:js -- --fix", "git add"], | ||
"*.{json,scss,css}": ["npm run lint:css -- --write", "git add"] | ||
"*.{scss,css}": ["npm run lint:css -- ", "git add"] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,26 @@ | ||
import Icon from '@oacore/design/lib/elements/icon' | ||
import { classNames } from '@oacore/design/lib/utils' | ||
import React from 'react' | ||
|
||
import styles from './styles.module.css' | ||
|
||
const DataProviderLogo = ({ | ||
alt, | ||
imageSrc, | ||
size = 'md', | ||
useDefault = true, | ||
}) => ( | ||
<div | ||
className={classNames.use(styles.circle, styles[size], { | ||
[styles.hidden]: !useDefault, | ||
})} | ||
> | ||
{imageSrc ? ( | ||
<img src={imageSrc} alt={alt} className={styles.image} /> | ||
) : ( | ||
<Icon src="#office-building" className={styles.image} /> | ||
)} | ||
</div> | ||
) | ||
|
||
export default DataProviderLogo |
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,23 @@ | ||
.circle { | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 88px; | ||
height: 88px; | ||
padding: 0.1rem; | ||
border: 1px solid var(--primary); | ||
border-radius: 50%; | ||
} | ||
|
||
.image { | ||
width: 100%; | ||
height: 100%; | ||
color: var(--gray-700); | ||
object-fit: contain; | ||
border-radius: 50%; | ||
} | ||
|
||
.hidden { | ||
display: none; | ||
} |
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
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
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
Oops, something went wrong.