Visitar URL original
docs: update website, add coinbase as user · formatjs/formatjs@9bb76bb · GitHub
Skip to content

Commit 9bb76bb

Browse files
committed
docs: update website, add coinbase as user
1 parent b0f3ea4 commit 9bb76bb

3 files changed

Lines changed: 71 additions & 1 deletion

File tree

‎website/src/pages/index.js‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
66
import useBaseUrl from '@docusaurus/useBaseUrl'
77
import styles from './styles.module.css'
88
import {IntlProvider, FormattedMessage, useIntl} from 'react-intl'
9+
import useThemeContext from '@theme/hooks/useThemeContext'
910

1011
import en from '../../lang/strings_en-US.json'
1112
import fr from '../../lang/strings_fr-FR.json'
@@ -165,7 +166,7 @@ function EnvSection({className}) {
165166
}
166167

167168
function ShowcaseSection({className}) {
168-
const intl = useIntl()
169+
const {isDarkTheme} = useThemeContext()
169170
return (
170171
<div className={cx(className, styles.showcase)}>
171172
<h3>
@@ -190,6 +191,13 @@ function ShowcaseSection({className}) {
190191
<div className="col col--2">
191192
<img src={useBaseUrl('img/mozilla.svg')} />
192193
</div>
194+
<div className="col col--2">
195+
<img
196+
src={useBaseUrl(
197+
isDarkTheme ? 'img/coinbase_white.svg' : 'img/coinbase.svg'
198+
)}
199+
/>
200+
</div>
193201
</div>
194202
</div>
195203
)

‎website/static/img/coinbase.svg‎

Lines changed: 31 additions & 0 deletions
Loading
Lines changed: 31 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)