-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4304c7
commit 3746888
Showing
3 changed files
with
69 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,10 @@ | ||
import React from "react"; | ||
import {Content} from "./content"; | ||
import {useAllDataStore} from "../redux"; | ||
import { useAuth } from "../utils/useAuth"; | ||
import { SmileOutlined } from '@ant-design/icons'; | ||
import { Layout, Result } from 'antd'; | ||
|
||
|
||
export const Home = React.memo(() => { | ||
const {allFeed} = useAllDataStore() | ||
|
||
if(allFeed?.length === 0 || allFeed === undefined) { | ||
return ( | ||
<> | ||
<Layout.Content className={"posts"} style={{ | ||
backgroundColor: "white", | ||
overflowY: 'auto', | ||
scrollbarWidth: 'thin', | ||
width: '200px', | ||
borderRight: '1px solid rgba(0,0,0,0.2)', | ||
padding: "40px 20px", | ||
}}> | ||
<Result | ||
icon={<SmileOutlined />} | ||
title="There Is No Feed !" | ||
subTitle="Please Follow SomeOne To Get Feed" | ||
style={{ | ||
backgroundColor: 'white' | ||
}} | ||
/> | ||
</Layout.Content> | ||
<Layout.Content className={"posts"} style={{ | ||
backgroundColor: 'white', | ||
overflowY: 'auto', | ||
scrollbarWidth: 'thin', | ||
padding: "40px 20px" | ||
}}> | ||
|
||
</Layout.Content> | ||
</> | ||
) | ||
|
||
} else { | ||
return <Content contents={allFeed}/> | ||
}; | ||
return <Content contents={allFeed}/> | ||
}) |