Skip to content

Commit

Permalink
Refactor code to use 'timestamp' instead of 'time' in ChatTalkContent
Browse files Browse the repository at this point in the history
  • Loading branch information
tako0614 committed Jul 17, 2024
1 parent 026329b commit afd8c3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/OtherMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const ChatOtherMessage = ({ name, time, message, isPrimary, nickName }: any) =>
const isPrimaryClass = isPrimary ? "c-talk-chat other primary" : "c-talk-chat other subsequent";
return (
<li class={isPrimaryClass}>
<div class="c-talk-chat-box">
<div class="c-talk-chat-box mb-1">
{isPrimary && (
<div class="c-talk-chat-icon">
<img
Expand Down
2 changes: 1 addition & 1 deletion components/SendMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ChatSendMessage = ({ isRead, time, message, isPrimary, isSendPrimary }: {
const isPrimaryClass = `c-talk-chat self ${isPrimary ? "primary" : "subsequent"}${isSendPrimary ? " mt-2" : ""}`;
return (
<li class={isPrimaryClass}>
<div class="c-talk-chat-box">
<div class="c-talk-chat-box mb-[3px]">
<div class="c-talk-chat-date">
{isRead && <p>既読</p>}
<p>{convertTime(time)}</p>
Expand Down
4 changes: 2 additions & 2 deletions routes/api/v2/server/information/users/changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export const handler = {
} = {
userid: userInfo.uuid,
userName: userInfo.userName,
nickName: userInfo.nickName,
description: userInfo.description,
nickName: userInfo.nickName ?? undefined,
description: userInfo.description as string,
};
if (change.userName !== undefined) {
if (change.userName !== userInfo.userName) {
Expand Down

0 comments on commit afd8c3d

Please sign in to comment.