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

Mui/icons로 모든 아이콘 교체 #611

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Changes from 1 commit
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
Next Next commit
change svgs to mui icons
  • Loading branch information
pcwadarong committed Aug 6, 2024
commit b01305f8e557ebc69362e60520682815c23c22ed
3 changes: 0 additions & 3 deletions packages/view/src/assets/author.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/view/src/assets/changed-file.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/view/src/assets/commit.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/view/src/assets/diff-add.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/view/src/assets/diff-delete.svg

This file was deleted.

20 changes: 10 additions & 10 deletions packages/view/src/components/Detail/Detail.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import dayjs from "dayjs";
import AddCircleRoundedIcon from "@mui/icons-material/AddCircleRounded";
import RemoveCircleRoundedIcon from "@mui/icons-material/RemoveCircleRounded";
import PersonRoundedIcon from "@mui/icons-material/PersonRounded";
import CommitRoundedIcon from "@mui/icons-material/CommitRounded";
import RestorePageRoundedIcon from "@mui/icons-material/RestorePageRounded";

import AuthorIcon from "assets/author.svg";
import ChangedFileIcon from "assets/changed-file.svg";
import CommitIcon from "assets/commit.svg";
import DiffAddIcon from "assets/diff-add.svg";
import DiffDeleteIcon from "assets/diff-delete.svg";
import { Author } from "components/@common/Author";

import { useCommitListHide } from "./Detail.hook";
@@ -20,11 +20,11 @@ const DetailSummary = ({ commitNodeListInCluster }: DetailSummaryProps) => {
});

const summaryItems: DetailSummaryItem[] = [
{ name: "authors", count: authorLength, icon: <AuthorIcon /> },
{ name: "commits", count: commitLength, icon: <CommitIcon /> },
{ name: "changed files", count: fileLength, icon: <ChangedFileIcon /> },
{ name: "additions", count: insertions, icon: <DiffAddIcon /> },
{ name: "deletions", count: deletions, icon: <DiffDeleteIcon /> },
{ name: "authors", count: authorLength, icon: <PersonRoundedIcon sx={{ fontSize: 18 }} /> },
{ name: "commits", count: commitLength, icon: <CommitRoundedIcon sx={{ fontSize: 18 }} /> },
{ name: "changed files", count: fileLength, icon: <RestorePageRoundedIcon sx={{ fontSize: 18 }} /> },
{ name: "additions", count: insertions, icon: <AddCircleRoundedIcon sx={{ fontSize: 18 }} /> },
{ name: "deletions", count: deletions, icon: <RemoveCircleRoundedIcon sx={{ fontSize: 18 }} /> },
];

return (