Skip to content

Commit

Permalink
thread datetime (#3893)
Browse files Browse the repository at this point in the history
Co-authored-by: Joystream Stats <dev@joystreamstats.live>
  • Loading branch information
traumschule and Joystream Stats authored Dec 12, 2022
1 parent 651e540 commit ec63fe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/app/pages/Forum/ForumThread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const ForumThread = () => {
{tag.title}
</BadgeStatus>
))}
<BlockTime block={thread.createdInBlock} />
<BlockTime block={thread.createdInBlock} layout="reverse" position="end" />
</BadgesRow>
</RowGapBlock>
</PageHeaderWrapper>
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/common/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const wgListItemMappings = (value: string) => {
}
}
}

export const fileToDataUrl = (file: File) => {
return new Promise<string>((resolve, reject) => {
const reader = new FileReader()
Expand All @@ -109,6 +110,7 @@ export const fileToDataUrl = (file: File) => {
reader.readAsDataURL(file)
})
}

export const resizeImageFile = async (
file: File,
width: number,
Expand Down

2 comments on commit ec63fe8

@vercel
Copy link

@vercel vercel bot commented on ec63fe8 Dec 12, 2022

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on ec63fe8 Dec 12, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

pioneer-2 – ./

pioneer-2.vercel.app
pioneer-2-joystream.vercel.app
pioneer-2-git-dev-joystream.vercel.app

Please sign in to comment.