mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
41 lines
730 B
TypeScript
41 lines
730 B
TypeScript
import * as React from "react";
|
|
import Gravatar = require("react-gravatar");
|
|
|
|
class GravatarEmailTest extends React.Component {
|
|
render() {
|
|
return (
|
|
<Gravatar
|
|
email="test@example.com"
|
|
size={100}
|
|
rating="x"
|
|
default="retro"
|
|
protocol="https://"
|
|
className="image"
|
|
style={{borderWidth: "1px"}}
|
|
/>
|
|
);
|
|
}
|
|
}
|
|
|
|
class GravatarHashTest extends React.Component {
|
|
render() {
|
|
return (
|
|
<Gravatar
|
|
md5="55502f40dc8b7c769880b10874abc9d0"
|
|
size={100}
|
|
rating="x"
|
|
default="retro"
|
|
protocol="https://"
|
|
className="image"
|
|
style={{borderWidth: "1px"}}
|
|
/>
|
|
);
|
|
}
|
|
}
|
|
|
|
class GravatarMinimalTest extends React.Component {
|
|
render() {
|
|
return <Gravatar email="test@example.com" />;
|
|
}
|
|
}
|