mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 07:01:19 -04:00
all components should accept additional classnames
This commit is contained in:
@@ -2,14 +2,18 @@ import Tweet from "react-tweet-embed";
|
||||
|
||||
type Props = {
|
||||
id: string;
|
||||
className?: string;
|
||||
options?: object;
|
||||
};
|
||||
|
||||
const TweetEmbed = (props: Props) => (
|
||||
const TweetEmbed = ({ id, className, options }: Props) => (
|
||||
<Tweet
|
||||
id={props.id}
|
||||
className={className}
|
||||
id={id}
|
||||
options={{
|
||||
dnt: true,
|
||||
align: "center",
|
||||
...options,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
Reference in New Issue
Block a user