Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

topAuthor links #188

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
29 changes: 29 additions & 0 deletions src/data/links/topAuthorLinks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const topAuthorLinks: string[] = [
'https://app.hackernoon.com/drafts/4E6A2NsOCdVtUSOvZ0rz',
'https://app.hackernoon.com/drafts/4ub652BZlv0353orv7XU',
'https://app.hackernoon.com/drafts/eb15VL7EnIszFoqRBy8l',
'https://app.hackernoon.com/drafts/hgRb7stfgSgbcx3ZmxCV',
'https://app.hackernoon.com/drafts/rzoXhETN5QsKWUBGvJzh',
'https://app.hackernoon.com/drafts/csF1Su3jePRMshPwsm8H',
'https://app.hackernoon.com/drafts/s9JCv15g4vcOIjEWkz1s',
'https://app.hackernoon.com/drafts/iwwHnFhMqA51NGgCL8FH',
'https://app.hackernoon.com/drafts/sj0fd4957PYdT8wKP5pP',
'',
'https://app.hackernoon.com/drafts/VoBVhoTN7mc3avr9nhdt',
'https://app.hackernoon.com/drafts/szCyStJz1rhO5yIPam9C',
'https://app.hackernoon.com/drafts/mNqumV6I5aHNSPaXwfE3',
'https://app.hackernoon.com/drafts/rMgxi9ygF0HnM4QRjn8G',
'https://app.hackernoon.com/drafts/wi00PIvAgrlswM3BIf02',
'https://app.hackernoon.com/drafts/zHcZwmzlMtC0U9SsIGQ6',
'https://app.hackernoon.com/drafts/WqcetiMvNys8iEn4E7n4',
'https://app.hackernoon.com/drafts/2x4y0Qp3ocsgyKql5Tsg',
'https://app.hackernoon.com/drafts/ymMJWWkuNX6NyPofAxi6',
'https://app.hackernoon.com/drafts/C4Z66vOM2ufq8UstkGsg',
'',
'https://app.hackernoon.com/drafts/KQt9R5PTPHlOAFJocTQG',
'https://app.hackernoon.com/drafts/iacjRAPm5V9UPnbeN5tn',
'https://app.hackernoon.com/drafts/nC3evAvq8j8gm4XWeynX',
'https://app.hackernoon.com/drafts/OxlKvK57m43VmgkVenLk'
];

export { topAuthorLinks };
46 changes: 23 additions & 23 deletions src/data/top-authors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const topAutors = [
{
'Draft url': 'https://app.hackernoon.com/drafts/4E6A2NsOCdVtUSOvZ0rz',
'Draft url': '',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vadim9999 если эту пустую строку убрать по моему ничего не сломается я его создаю практически здесь - src/pages/TOPAuthors/TOPAuthors.tsx

'': 'test',
v: 'test',
email: '[email protected]',
Expand All @@ -12,7 +12,7 @@ const topAutors = [
'Avg time ALL story': 13
},
{
'Draft url': 'https://app.hackernoon.com/drafts/4ub652BZlv0353orv7XU',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -24,7 +24,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/eb15VL7EnIszFoqRBy8l',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -36,7 +36,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/hgRb7stfgSgbcx3ZmxCV',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -48,7 +48,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/rzoXhETN5QsKWUBGvJzh',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -60,7 +60,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/csF1Su3jePRMshPwsm8H',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -84,7 +84,7 @@ const topAutors = [
// "Avg time ALL story": "",
// },
{
'Draft url': 'https://app.hackernoon.com/drafts/s9JCv15g4vcOIjEWkz1s',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -96,7 +96,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/iwwHnFhMqA51NGgCL8FH',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -108,7 +108,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/sj0fd4957PYdT8wKP5pP',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -132,7 +132,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/VoBVhoTN7mc3avr9nhdt',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -144,7 +144,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/szCyStJz1rhO5yIPam9C',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -156,7 +156,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/mNqumV6I5aHNSPaXwfE3',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -168,7 +168,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/rMgxi9ygF0HnM4QRjn8G',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -180,7 +180,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/wi00PIvAgrlswM3BIf02',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -192,7 +192,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/zHcZwmzlMtC0U9SsIGQ6',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -204,7 +204,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/WqcetiMvNys8iEn4E7n4',
'Draft url': '',
'': '',
v: '',
email: '',
Expand All @@ -216,7 +216,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/2x4y0Qp3ocsgyKql5Tsg',
'Draft url': '',
'': '',
v: 'v',
email: '',
Expand All @@ -228,7 +228,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/ymMJWWkuNX6NyPofAxi6',
'Draft url': '',
'': '',
v: 'v',
email: '',
Expand All @@ -240,7 +240,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/C4Z66vOM2ufq8UstkGsg',
'Draft url': '',
'': '',
v: 'v',
email: 'mailto:[email protected]',
Expand All @@ -264,7 +264,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/KQt9R5PTPHlOAFJocTQG',
'Draft url': '',
'': '',
v: 'v',
email: '[email protected]',
Expand All @@ -276,7 +276,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/iacjRAPm5V9UPnbeN5tn',
'Draft url': '',
'': '',
v: 'v',
email: 'mailto:[email protected]',
Expand All @@ -288,7 +288,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/nC3evAvq8j8gm4XWeynX',
'Draft url': '',
'': '',
v: 'v',
email: '',
Expand All @@ -300,7 +300,7 @@ const topAutors = [
'Avg time ALL story': ''
},
{
'Draft url': 'https://app.hackernoon.com/drafts/OxlKvK57m43VmgkVenLk',
'Draft url': '',
'': '',
v: 'v',
email: '',
Expand Down
6 changes: 4 additions & 2 deletions src/pages/TOPAuthors/TOPAuthors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Button, Checkbox, Dropdown, Menu, Spin } from 'antd';
import { ColumnsType } from 'antd/es/table';
import moment from 'moment';

import { topAuthorLinks } from "data/links/topAuthorLinks";
import { Table } from 'components';
import { TopAuthor } from 'models/gql';
import { useGetManyTopAuthorQuery } from 'models/gql';
Expand Down Expand Up @@ -103,10 +104,11 @@ const TOPAutors = () => {
}
];

const dataSource = data?.getManyTopAuthor.map((item) => {
const dataSource = data?.getManyTopAuthor.map((item, index) => {
return {
key: item?.id,
...item
...item,
'Draft url': topAuthorLinks[index]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вот здесь

};
});

Expand Down