diff --git a/src/components/AvatarsRow/index.tsx b/src/components/AvatarsRow/index.tsx index a06239cce..4c5cb046a 100755 --- a/src/components/AvatarsRow/index.tsx +++ b/src/components/AvatarsRow/index.tsx @@ -48,8 +48,8 @@ export type TProps = { reverse?: boolean scrollPosition?: any - onUserSelect: (user: TUser) => void - onTotalSelect: () => void + onUserSelect?: (user: TUser) => void + onTotalSelect?: () => void } const AvatarsRow: FC = ({ diff --git a/src/components/JobItem/CompanyInfo.js b/src/components/JobItem/CompanyInfo.js deleted file mode 100755 index 175439d1d..000000000 --- a/src/components/JobItem/CompanyInfo.js +++ /dev/null @@ -1,46 +0,0 @@ -import React from 'react' -import { isEmpty } from 'ramda' - -import { cutRest } from '@/utils' -import { - Wrapper, - TopHalf, - BaseInfo, - CompanyLogo, - Header, - Middle, - Footer, - Title, - StatesWrapper, - StateItem, - FinanceState, -} from './styles/company_info' - -const CompanyInfo = ({ - entry: { company, companyLogo, desc, field, finance, scale }, - onPreview, -}) => ( - - - -
- {cutRest(company, 12)} -
- - - {field} - {finance} - {scale} - - -
- -
-
- " - {isEmpty(desc) ? '---' : desc} " -
-
-) - -export default React.memo(CompanyInfo) diff --git a/src/components/JobItem/DesktopView/Footer.tsx b/src/components/JobItem/DesktopView/Footer.tsx new file mode 100644 index 000000000..240bc428f --- /dev/null +++ b/src/components/JobItem/DesktopView/Footer.tsx @@ -0,0 +1,14 @@ +import { FC, memo } from 'react' + +const Footer: FC = () => { + return ( +
+
mydearxym 发布于: 3 天前
+
+ 你和 头像 Raw 等 24 人觉得不错 -- 评论 35,收藏, 分享, 举报(more 里面) +
+
+ ) +} + +export default memo(Footer) diff --git a/src/components/JobItem/DesktopView/Header.tsx b/src/components/JobItem/DesktopView/Header.tsx new file mode 100644 index 000000000..05ea9cd23 --- /dev/null +++ b/src/components/JobItem/DesktopView/Header.tsx @@ -0,0 +1,23 @@ +import { FC, memo } from 'react' + +import type { TTag } from '@/spec' +import { cutRest } from '@/utils' +import InlineTags from '@/components/InlineTags' + +import { Wrapper, Title } from '../styles/desktop_view/header' + +type TProps = { + title: string + tags: TTag[] +} + +const Header: FC = ({ title, tags }) => { + return ( + + {cutRest(title, 100)} + + + ) +} + +export default memo(Header) diff --git a/src/components/JobItem/DesktopView/index.tsx b/src/components/JobItem/DesktopView/index.tsx new file mode 100644 index 000000000..8a34afd75 --- /dev/null +++ b/src/components/JobItem/DesktopView/index.tsx @@ -0,0 +1,39 @@ +import { FC, memo } from 'react' + +import type { TJob } from '@/spec' + +import { cutRest } from '@/utils' +import DigestSentence from '@/components/DigestSentence' +import { Br } from '@/components/Common' + +import Header from './Header' +import Footer from './Footer' + +import { Wrapper } from '../styles/desktop_view' + +type TProps = { + entry: TJob +} + +const DesktopView: FC = ({ entry }) => { + const { title, tags } = entry + + return ( + +
+
+ console.log}> + {cutRest( + '我是一家很酷的团队, 我是一家很酷的团队, 我是一家很酷的团队,我是一家很酷的团队, 我是一家很酷的团队, 我是一家很酷的团队', + 100, + )} + +
+
图片列表,可预览
+
+