We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43da315 commit b4ca394Copy full SHA for b4ca394
pages/browse/index.js
@@ -49,13 +49,6 @@ const Browse = ({ session }) => {
49
)
50
}
51
52
- // const truncateDescription = (desc = '', maxLength, isOpen) => {
53
- // if (desc.length <= maxLength || isOpen) return { truncated: desc, cutOffIndex: desc.length }
54
- // const lastSpaceIndex = desc.substring(0, maxLength).lastIndexOf(' ')
55
- // const ellipsis = isOpen ? '' : '...'
56
- // return { truncated: desc.slice(0, lastSpaceIndex) + ellipsis, cutOffIndex: lastSpaceIndex }
57
- // }
58
-
59
return (
60
<div className='container'>
61
<SearchBar onSubmit={handleOnSubmit} initialValue={existingQuery} />
0 commit comments