lbry-desktop/ui/component/loginGraphic/index.jsx
infinite-persistence 1b3fec0452 Add sign-in graphics for SIMPLE_SITE
Homepages repo: `Issue 64 - Add new graphics to odysee sign in`
2021-05-27 14:21:16 +08:00

16 lines
428 B
JavaScript

// @flow
import React from 'react';
import { SITE_NAME, LOGIN_IMG_URL } from 'config';
function LoginGraphic(props: any) {
const [error, setError] = React.useState(false);
const src = LOGIN_IMG_URL;
return error || !src ? null : (
<div className="signup-image">
<img alt={__('%SITE_NAME% login image', { SITE_NAME })} src={src} onError={() => setError(true)} />
</div>
);
}
export default LoginGraphic;