chore: Update syntax, improve more typing (#1439)
* chore: <React.Fragment> to <> * flow types
This commit is contained in:
@ -18,10 +18,10 @@ function DocumentMeta({ views, isDraft, document }: Props) {
|
||||
return (
|
||||
<Meta document={document}>
|
||||
{totalViews && !isDraft ? (
|
||||
<React.Fragment>
|
||||
<>
|
||||
· Viewed{" "}
|
||||
{totalViews === 1 ? "once" : `${totalViews} times`}
|
||||
</React.Fragment>
|
||||
</>
|
||||
) : null}
|
||||
</Meta>
|
||||
);
|
||||
|
Reference in New Issue
Block a user