-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjustments to lock page and refactor
- Loading branch information
1 parent
c6a4f76
commit 0727b1d
Showing
14 changed files
with
461 additions
and
341 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
36 changes: 27 additions & 9 deletions
36
ui/components/dashboard/announcements/AnnouncementSkeletons.tsx
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,19 +1,37 @@ | ||
import Announcement from "./Announcement" | ||
import Announcement from './Announcement' | ||
|
||
const AnnouncementSkeletons = () => { | ||
const skeletonData = { | ||
content : Array(8).fill("Loading, if this takes too long contact MoonDao Discord ").join(" "), | ||
content: Array(8) | ||
.fill('Loading, if this takes too long contact MoonDao Discord ') | ||
.join(' '), | ||
mentions: [], | ||
author: {username:"MoonDAO"}, | ||
timestamp: new Date() , | ||
reactions: [{emoji:{name:"🚀"}, count:"10"},{emoji:{name:"🚀"}, count:"10"},{emoji:{name:"🚀"}, count:"10"}] | ||
author: { username: 'MoonDAO' }, | ||
timestamp: new Date(), | ||
reactions: [ | ||
{ emoji: { name: '🚀' }, count: '10' }, | ||
{ emoji: { name: '🚀' }, count: '10' }, | ||
{ emoji: { name: '🚀' }, count: '10' }, | ||
], | ||
} | ||
return ( | ||
|
||
return ( | ||
<> | ||
{Array(10).fill(skeletonData).map((e,i) => <Announcement loading key={i} content={e.content} mentions={e.mentions} author={e.author} timestamp={e.timestamp} reactions={e.reactions} />)} | ||
{Array(10) | ||
.fill(skeletonData) | ||
.map((e, i) => ( | ||
<Announcement | ||
loading | ||
key={'announcement-skeleton' + i} | ||
content={e.content} | ||
mentions={e.mentions} | ||
author={e.author} | ||
timestamp={e.timestamp} | ||
reactions={e.reactions} | ||
/> | ||
))} | ||
</> | ||
) | ||
} | ||
|
||
export default AnnouncementSkeletons | ||
export default AnnouncementSkeletons |
Oops, something went wrong.