Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ refactor: 소소한 코드정리 #7

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dist-ssr
*.sln
*.sw?
.env

.scannerwork
# vite test coverage
/coverage

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/chart/BarChartItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function BarChartItem({ data, title, description, color }: BarTyp

useEffect(() => {
const resizeObserver = new ResizeObserver((entries) => {
for (let entry of entries) {
for (const entry of entries) {
setComponentWidth(entry.contentRect.width);
}
});
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/chat/ChatItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ChatType } from "@/types/chat";

type ChatItemProps = {
chatItem: ChatType;
isSameUser: Boolean;
isSameUser: boolean;
};
const chatStyle = "p-3 bg-gray-200 text-black break-words whitespace-pre-wrap rounded-md inline-block max-w-[90%]";
export default function ChatItem({ chatItem, isSameUser }: ChatItemProps) {
Expand Down
2 changes: 1 addition & 1 deletion client/src/hooks/queries/useSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const useSearch = ({ query, filter, page, pageSize }: SearchRequest) => {
handler(query);

return () => {
handler.cancel && handler.cancel();
if (handler.cancel) handler.cancel();
};
}, [query]);

Expand Down
Loading