Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
130192d5
Commit
130192d5
authored
2 years ago
by
Josh Slaughter
Browse files
Options
Download
Email Patches
Plain Diff
Adjusting doc string
parent
5ea6bc69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/packages/core/src/timeago.tsx
+2
-0
frontend/packages/core/src/timeago.tsx
with
2 additions
and
0 deletions
+2
-0
frontend/packages/core/src/timeago.tsx
+
2
-
0
View file @
130192d5
...
...
@@ -30,6 +30,8 @@ const setMilliseconds = (timestamp?: number | Long | null): number => {
/**
* Will take a millsecond timestamp in and calculate the timeago for it
* @param date the millisecond timestamp
* @param short (default) will shorten the unit string (day -> d)
* @param live (default) will auto increment based on a given time
* @returns react component representing the timeago
*/
const
TimeAgo
=
({
short
=
true
,
onClick
,
...
props
}:
EventTimeProps
)
=>
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help