| Línea 7... |
Línea 7... |
| 7 |
setCurrentPage,
|
7 |
setCurrentPage,
|
| 8 |
setTimelineUrl
|
8 |
setTimelineUrl
|
| 9 |
} from '@app/redux/feed/feed.actions'
|
9 |
} from '@app/redux/feed/feed.actions'
|
| 10 |
import { feedTypes } from '@app/redux/feed/feed.types'
|
10 |
import { feedTypes } from '@app/redux/feed/feed.types'
|
| Línea 11... |
Línea -... |
| 11 |
|
- |
|
| 12 |
import Spinner from '@app/components/UI/Spinner'
|
11 |
|
| 13 |
import AppGrid from '@app/components/UI/layout/AppGrid'
|
12 |
import AppGrid from '@app/components/UI/layout/AppGrid'
|
| 14 |
import GroupsWidget from '@app/components/dashboard/linkedin/Groups'
|
13 |
import GroupsWidget from '@app/components/dashboard/linkedin/Groups'
|
| 15 |
import UserProfileCard from '@app/components/dashboard/linkedin/user-profile-card'
|
- |
|
| 16 |
import FeedList from '@app/components/dashboard/linkedin/feed-list/FeedList'
|
14 |
import UserProfileCard from '@app/components/dashboard/linkedin/user-profile-card'
|
| 17 |
import FeedShare from '@app/components/dashboard/linkedin/share/ShareComponent'
|
15 |
import FeedShare from '@app/components/dashboard/linkedin/share/ShareComponent'
|
| 18 |
import ReportModal from '@app/components/modals/ReportModal'
|
16 |
import ReportModal from '@app/components/modals/ReportModal'
|
| 19 |
import ShareModal from '@app/components/modals/ShareModal'
|
17 |
import ShareModal from '@app/components/modals/ShareModal'
|
| 20 |
import DailyPulse from '@app/components/widgets/default/DailyPulse'
|
18 |
import DailyPulse from '@app/components/widgets/default/DailyPulse'
|
| Línea 23... |
Línea 21... |
| 23 |
import AppsWidget from '@components/dashboard/widgets/AppsWidget'
|
21 |
import AppsWidget from '@components/dashboard/widgets/AppsWidget'
|
| 24 |
import OnRoomWidget from '@components/dashboard/widgets/OnRoomWidget'
|
22 |
import OnRoomWidget from '@components/dashboard/widgets/OnRoomWidget'
|
| 25 |
import MicrolearningWidget from '@components/dashboard/widgets/MicrolearningWidget'
|
23 |
import MicrolearningWidget from '@components/dashboard/widgets/MicrolearningWidget'
|
| 26 |
import Pagination from '@components/common/Pagination'
|
24 |
import Pagination from '@components/common/Pagination'
|
| 27 |
import HabitsWidget from '@components/dashboard/widgets/HabitsWidget'
|
25 |
import HabitsWidget from '@components/dashboard/widgets/HabitsWidget'
|
| - |
|
26 |
import LoadingWrapper from '@components/common/loading-wrapper'
|
| - |
|
27 |
import List from '@components/common/list'
|
| - |
|
28 |
import Feed from '@components/dashboard/feed/feed'
|
| Línea 28... |
Línea 29... |
| 28 |
|
29 |
|
| 29 |
const DashboardPage = () => {
|
30 |
const DashboardPage = () => {
|
| 30 |
const { feeds, timelineUrl, currentPage, loading, pages } = useSelector(
|
31 |
const { feeds, timelineUrl, currentPage, loading, pages } = useSelector(
|
| 31 |
({ feed }) => feed
|
32 |
({ feed }) => feed
|
| Línea 105... |
Línea 106... |
| 105 |
<FeedShare
|
106 |
<FeedShare
|
| 106 |
image={data?.image}
|
107 |
image={data?.image}
|
| 107 |
feedType={feedTypes.DASHBOARD}
|
108 |
feedType={feedTypes.DASHBOARD}
|
| 108 |
postUrl='/feed/add'
|
109 |
postUrl='/feed/add'
|
| 109 |
/>
|
110 |
/>
|
| 110 |
{loading ? <Spinner /> : <FeedList feeds={allFeeds} />}
|
111 |
<LoadingWrapper loading={loading}>
|
| - |
|
112 |
<List
|
| - |
|
113 |
items={allFeeds}
|
| - |
|
114 |
emptyMessage='No hay publicaciones para mostrar'
|
| - |
|
115 |
renderItem={({ feed_unique, feed_uuid }) => (
|
| - |
|
116 |
<Feed id={feed_uuid} key={feed_unique} />
|
| - |
|
117 |
)}
|
| - |
|
118 |
/>
|
| 111 |
<Pagination
|
119 |
<Pagination
|
| 112 |
pages={pages}
|
120 |
pages={pages}
|
| 113 |
page={currentPage}
|
121 |
page={currentPage}
|
| 114 |
onChange={onChangePageHandler}
|
122 |
onChange={onChangePageHandler}
|
| 115 |
/>
|
123 |
/>
|
| - |
|
124 |
</LoadingWrapper>
|
| 116 |
</>
|
125 |
</>
|
| 117 |
)}
|
126 |
)}
|
| 118 |
renderAside={() => (
|
127 |
renderAside={() => (
|
| 119 |
<>
|
128 |
<>
|
| 120 |
{routeDailyPulse && !isMobile && (
|
129 |
{routeDailyPulse && !isMobile && (
|