aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-21 13:55:33 +0800
committercrupest <crupest@outlook.com>2022-12-21 13:55:58 +0800
commit310b093e2f11fcaa239c3f411c6acf2bdc501e9a (patch)
tree7895ef0a87f8153d677ed0100b82166dc100af82 /FrontEnd/src/views
parent7946f6c49d08650722b821303b9d043894521008 (diff)
downloadtimeline-310b093e2f11fcaa239c3f411c6acf2bdc501e9a.tar.gz
timeline-310b093e2f11fcaa239c3f411c6acf2bdc501e9a.tar.bz2
timeline-310b093e2f11fcaa239c3f411c6acf2bdc501e9a.zip
Fix type error.
Diffstat (limited to 'FrontEnd/src/views')
-rw-r--r--FrontEnd/src/views/center/TimelineBoard.tsx4
-rw-r--r--FrontEnd/src/views/settings/ChangeAvatarDialog.tsx2
2 files changed, 3 insertions, 3 deletions
diff --git a/FrontEnd/src/views/center/TimelineBoard.tsx b/FrontEnd/src/views/center/TimelineBoard.tsx
index 7ff4e0a4..68a887a4 100644
--- a/FrontEnd/src/views/center/TimelineBoard.tsx
+++ b/FrontEnd/src/views/center/TimelineBoard.tsx
@@ -213,7 +213,7 @@ const TimelineBoardItemContainer: React.FC<TimelineBoardItemContainerProps> = ({
};
interface TimelineBoardUIProps {
- title?: string;
+ title?: string | null;
state: "offline" | "loading" | "loaded";
timelines: TimelineBookmark[];
onReload: () => void;
@@ -298,7 +298,7 @@ const TimelineBoardUI: React.FC<TimelineBoardUIProps> = (props) => {
};
export interface TimelineBoardProps {
- title?: string;
+ title?: string | null;
className?: string;
load: () => Promise<TimelineBookmark[]>;
editHandler?: {
diff --git a/FrontEnd/src/views/settings/ChangeAvatarDialog.tsx b/FrontEnd/src/views/settings/ChangeAvatarDialog.tsx
index 045ec00f..4c9a3afb 100644
--- a/FrontEnd/src/views/settings/ChangeAvatarDialog.tsx
+++ b/FrontEnd/src/views/settings/ChangeAvatarDialog.tsx
@@ -153,7 +153,7 @@ const ChangeAvatarDialog: React.FC<ChangeAvatarDialogProps> = (props) => {
<img
className="change-avatar-img"
src={resultUrl}
- alt={t("settings.dialogChangeAvatar.previewImgAlt")}
+ alt={t("settings.dialogChangeAvatar.previewImgAlt") ?? undefined}
/>
</div>
</div>