|
|
@@ -1,7 +1,7 @@
|
|
|
import { Typography } from "antd";
|
|
|
import { Space } from "antd";
|
|
|
-import { useEffect, useRef } from "react";
|
|
|
|
|
|
+import StudioName from "../../auth/StudioName";
|
|
|
import User from "../../auth/User";
|
|
|
import TimeShow from "../../general/TimeShow";
|
|
|
import { ISentence } from "../SentEdit";
|
|
|
@@ -10,13 +10,15 @@ const { Text } = Typography;
|
|
|
|
|
|
interface IWidget {
|
|
|
data: ISentence;
|
|
|
+ isPr?: boolean;
|
|
|
}
|
|
|
-const Widget = ({ data }: IWidget) => {
|
|
|
+const Widget = ({ data, isPr = false }: IWidget) => {
|
|
|
return (
|
|
|
<div style={{ fontSize: "80%" }}>
|
|
|
<Text type="secondary">
|
|
|
<Space>
|
|
|
- <User {...data.editor} />
|
|
|
+ {isPr ? undefined : <StudioName data={data.studio} />}
|
|
|
+ <User {...data.editor} showAvatar={isPr ? true : false} />
|
|
|
<span>edit</span>
|
|
|
{data.prEditAt ? (
|
|
|
<TimeShow time={data.prEditAt} />
|