File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed
features/repo-explorer/components/entries-view Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import { List } from "antd" ;
33import cn from "classnames" ;
4- import { RepoIdentity , GitFile } from "models" ;
4+ import { RepoIdentity , GitFile , GitCommit } from "models" ;
55import { useBranch } from "../../hooks" ;
66import SkeletonArea from "../skeleton-area" ;
77import GitFileView from "./git-file-view" ;
8- import LastCommitHeader , { GitCommit } from "./last-commit-header" ;
8+ import LastCommitHeader from "./last-commit-header" ;
99import "./index.scss" ;
1010
1111type Props = {
Original file line number Diff line number Diff line change 11import React from "react" ;
22import dayjs from "dayjs" ;
33import { Link } from "react-router-dom" ;
4+ import { GitCommit } from "models" ;
45import logo from "./placeholder.png" ;
56
6- export type GitCommit = {
7- message : string ;
8- login ?: string ;
9- avatarUrl ?: string ;
10- name ?: string | null ;
11- date : string ;
12- } ;
13-
147type Props = {
158 lastCommit : GitCommit ;
169} ;
Original file line number Diff line number Diff line change @@ -39,3 +39,14 @@ export type BranchIdentity = {
3939 * Объект, описывающий файл или директорию
4040 */
4141export type GitFile = { type : string ; name : string } ;
42+
43+ /**
44+ * Основная информация о коммите
45+ */
46+ export type GitCommit = {
47+ message : string ;
48+ login ?: string ;
49+ avatarUrl ?: string ;
50+ name ?: string | null ;
51+ date : string ;
52+ } ;
You can’t perform that action at this time.
0 commit comments