aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/Author.tsx
diff options
context:
space:
mode:
authorludovicm67 <ludovicmuller1@gmail.com>2020-02-12 23:09:45 +0100
committerludovicm67 <ludovicmuller1@gmail.com>2020-02-12 23:09:45 +0100
commitd0a6da286a28e79ae3bb75af41219c4cc4df20b0 (patch)
treec02a2641c78331a45af4623613136f4cdc51af17 /webui/src/Author.tsx
parentc2d18b3a9bec9933d2845ce3cfc6dd5b4f3ff348 (diff)
downloadgit-bug-d0a6da286a28e79ae3bb75af41219c4cc4df20b0.tar.gz
webui: finish TypeScript conversion
Diffstat (limited to 'webui/src/Author.tsx')
-rw-r--r--webui/src/Author.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/webui/src/Author.tsx b/webui/src/Author.tsx
index 20de583a..852cd2b7 100644
--- a/webui/src/Author.tsx
+++ b/webui/src/Author.tsx
@@ -4,7 +4,11 @@ import React from 'react';
import { AuthoredFragment } from './Author.generated';
-type Props = AuthoredFragment;
+type Props = AuthoredFragment & {
+ className?: string;
+ bold?: boolean;
+};
+
const Author = ({ author, ...props }: Props) => {
if (!author.email) {
return <span {...props}>{author.displayName}</span>;