+
Skip to content

Add format prop to timedisplay #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

ZeWaka
Copy link
Collaborator

@ZeWaka ZeWaka commented Aug 1, 2024

This lets interfaces pass a formatting function in case they want to format time differently
(See: no hour digits)

needs to be converted to typescript and not this weirdness but out of scope

edit: guh accidentally pushing unsaved versions every time

@ZeWaka ZeWaka force-pushed the timedisplay-format branch from 38fbdaa to d1549f0 Compare August 1, 2024 07:05
@ZeWaka ZeWaka force-pushed the timedisplay-format branch from d1549f0 to be8dcdb Compare August 1, 2024 07:06
@stylemistake
Copy link
Member

Prop should be named just format, since many other components have format and fn suffix feels redundant, but that's just me.

@ZeWaka
Copy link
Collaborator Author

ZeWaka commented Aug 2, 2024

Prop should be named just format, since many other components have format and fn suffix feels redundant, but that's just me.

sounds good, that's what we originally named it on goon lol

@ZeWaka ZeWaka changed the title Add formatFn prop to timedisplay Add format prop to timedisplay Aug 2, 2024
@ZephyrTFA ZephyrTFA merged commit da3c0ff into tgstation:main Aug 2, 2024
1 check passed
@ZeWaka ZeWaka deleted the timedisplay-format branch August 2, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载