mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: improve update button visibility (#3115)
* feat: give update button primary focus when applicable resolves #3024 * added update tooltip * cleanup * prettier * PR feedback
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import dayjs from "dayjs"
|
||||
|
||||
/**
|
||||
* Returns a human-readable string describing the passing of time
|
||||
* Broken into its own module for testing purposes
|
||||
*/
|
||||
export function createDayString(time: string): string {
|
||||
return dayjs().to(dayjs(time))
|
||||
}
|
||||
Reference in New Issue
Block a user