Skip to content

Commit 34c0966

Browse files
committed
chore: cleanup based on pr review
1 parent 055f505 commit 34c0966

21 files changed

+152
-222
lines changed

src/components/AuthenticatedUserMenu.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ export function AuthenticatedUserMenu({
8080
)}
8181
{canAdmin && (
8282
<DropdownItem asChild>
83-
<Link
84-
to="/admin"
85-
search={{ tab: 'overview' }}
86-
className="flex items-center gap-2"
87-
>
83+
<Link to="/admin" className="flex items-center gap-2">
8884
<Lock className="w-4 h-4" />
8985
<span>Admin</span>
9086
</Link>

src/components/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,9 +790,9 @@ export function Navbar({ children }: { children: React.ReactNode }) {
790790
showMenu && 'md:translate-x-0',
791791
// lg breakpoint: inline when no Title, flyout when Title
792792
inlineMenu &&
793-
'lg:sticky lg:top-[var(--navbar-height)] lg:translate-x-0 lg:bg-white/50 lg:dark:bg-black/30 lg:backdrop-blur-none lg:shadow-none',
793+
'lg:sticky lg:top-[var(--navbar-height)] lg:translate-x-0 lg:bg-white/50 lg:dark:bg-black/30 lg:backdrop-blur-none lg:shadow-none',
794794
!inlineMenu &&
795-
'lg:fixed lg:top-[var(--navbar-height)] lg:bg-white lg:dark:bg-black/90 lg:backdrop-blur-lg lg:shadow-xl',
795+
'lg:fixed lg:top-[var(--navbar-height)] lg:bg-white lg:dark:bg-black/90 lg:backdrop-blur-lg lg:shadow-xl',
796796
!inlineMenu && !showMenu && 'lg:-translate-x-full',
797797
!inlineMenu && showMenu && 'lg:translate-x-0',
798798
)}

src/components/ShowcaseDetail.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ export function ShowcaseDetail({ showcaseId }: ShowcaseDetailProps) {
203203
</p>
204204
<Link
205205
to="/showcase"
206-
search={{ page: 1 }}
207206
className="inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300 font-medium"
208207
>
209208
<ArrowLeft className="w-4 h-4" />
@@ -226,7 +225,6 @@ export function ShowcaseDetail({ showcaseId }: ShowcaseDetailProps) {
226225
{/* Back link */}
227226
<Link
228227
to="/showcase"
229-
search={{ page: 1 }}
230228
className="inline-flex items-center gap-2 text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white mb-6"
231229
>
232230
<ArrowLeft className="w-4 h-4" />

src/components/ShowcaseGallery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export function ShowcaseGallery() {
360360
totalItems={data.pagination.total}
361361
pageSize={24}
362362
onPageChange={handlePageChange}
363-
onPageSizeChange={() => {}}
363+
onPageSizeChange={() => { }}
364364
canGoPrevious={search.page > 1}
365365
canGoNext={search.page < data.pagination.totalPages}
366366
itemLabel="projects"

src/components/ShowcaseSection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ export function ShowcaseSection({
239239
<Link
240240
to="/showcase"
241241
search={{
242-
page: 1,
243242
libraryIds: libraryId ? [libraryId] : undefined,
244243
}}
245244
>

src/components/landing/DbLanding.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function DbLanding() {
2121
cta={{
2222
linkProps: {
2323
to: '/$libraryId/$version/docs',
24-
params: { libraryId: library.id, version: 'latest' },
24+
params: { libraryId: library.id },
2525
},
2626
label: 'Get Started',
2727
className:
@@ -80,7 +80,7 @@ export default function DbLanding() {
8080
<BottomCTA
8181
linkProps={{
8282
to: '/$libraryId/$version/docs',
83-
params: { libraryId: library.id, version: 'latest' },
83+
params: { libraryId: library.id },
8484
}}
8585
label="Get Started!"
8686
className="bg-orange-500 border-orange-500 hover:bg-orange-600 text-white"

src/components/landing/DevtoolsLanding.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function DevtoolsLanding() {
2222
cta={{
2323
linkProps: {
2424
to: '/$libraryId/$version/docs',
25-
params: { libraryId: library.id, version: 'latest' },
25+
params: { libraryId: library.id },
2626
},
2727
label: 'Get Started',
2828
className:
@@ -72,7 +72,7 @@ export default function DevtoolsLanding() {
7272
<BottomCTA
7373
linkProps={{
7474
to: '/$libraryId/$version/docs',
75-
params: { libraryId: library.id, version: 'latest' },
75+
params: { libraryId: library.id },
7676
}}
7777
label="Get Started!"
7878
className="bg-slate-500 border-slate-500 hover:bg-slate-600 hover:border-slate-600 text-white"

src/components/landing/PacerLanding.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function PacerLanding() {
2222
cta={{
2323
linkProps: {
2424
to: '/$libraryId/$version/docs',
25-
params: { libraryId: library.id, version: 'latest' },
25+
params: { libraryId: library.id },
2626
},
2727
label: 'Get Started',
2828
className: 'bg-lime-600 border-lime-600 hover:bg-lime-700 text-white',
@@ -70,7 +70,7 @@ export default function PacerLanding() {
7070
<BottomCTA
7171
linkProps={{
7272
to: '/$libraryId/$version/docs',
73-
params: { libraryId: library.id, version: 'latest' },
73+
params: { libraryId: library.id },
7474
}}
7575
label="Get Started!"
7676
className="bg-lime-600 border-lime-600 hover:bg-lime-700 hover:border-lime-700 text-white"

src/components/landing/StartLanding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default function StartLanding() {
130130
<BottomCTA
131131
linkProps={{
132132
to: '/$libraryId/$version/docs',
133-
params: { libraryId: library.id, version: 'latest' },
133+
params: { libraryId: library.id },
134134
}}
135135
label="Get Started!"
136136
className="bg-cyan-500 border-cyan-500 hover:bg-cyan-600 text-white"

src/components/landing/StoreLanding.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function StoreLanding() {
2121
cta={{
2222
linkProps: {
2323
to: '/$libraryId/$version/docs',
24-
params: { libraryId: library.id, version: 'latest' },
24+
params: { libraryId: library.id },
2525
},
2626
label: 'Get Started',
2727
className:
@@ -43,7 +43,7 @@ export default function StoreLanding() {
4343
<BottomCTA
4444
linkProps={{
4545
to: '/$libraryId/$version/docs',
46-
params: { libraryId: library.id, version: 'latest' },
46+
params: { libraryId: library.id },
4747
}}
4848
label="Get Started!"
4949
className="bg-stone-700 border-stone-700 hover:bg-stone-800 text-white"

0 commit comments

Comments
 (0)