-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Truncate text util * feat: Make buttons gray when disabled. * feat: Ability to disable buttons * refactor: Use state to not have to reload page when updating bio * fix: Forgot to ellipsis * fix: Catch undefined. * chore: use provided length * chore: use toaster Co-authored-by: Nico <[email protected]>
- Loading branch information
Showing
5 changed files
with
61 additions
and
47 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
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
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 +1,2 @@ | ||
export const DeNullishFilter = <T>(b: T): b is Exclude<T, null|undefined|0|''> => !!b; | ||
export const DeNullishFilter = <T>(b: T): b is Exclude<T, null|undefined|0|''> => !!b; | ||
export const TruncateText = (content: string, length = 150) => content.length > length ? content.slice(0, length) + '...' : content; |
4d8de51
There was a problem hiding this comment.
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:
guilded-bio – ./
guilded-bio.vercel.app
www.guilded.bio
guilded-bio-yoki-labs.vercel.app
guilded-bio-git-main-yoki-labs.vercel.app
guilded.bio