File tree Expand file tree Collapse file tree 5 files changed +28
-25
lines changed
apps/web/src/routes/_view Expand file tree Collapse file tree 5 files changed +28
-25
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ function AccountSettingsCard() {
128128 < button
129129 onClick = { ( ) => manageBillingMutation . mutate ( ) }
130130 disabled = { manageBillingMutation . isPending }
131- className = "px-4 h-8 flex items-center text-sm bg-linear-to-b from-white to-stone-50 border border-neutral-300 text-neutral-700 rounded-full shadow-sm hover:shadow-md hover:scale-[102%] active:scale-[98%] transition-all disabled:opacity-50 disabled:hover:scale-100"
131+ className = "cursor-pointer px-4 h-8 flex items-center text-sm bg-linear-to-b from-white to-stone-50 border border-neutral-300 text-neutral-700 rounded-full shadow-sm hover:shadow-md hover:scale-[102%] active:scale-[98%] transition-all disabled:opacity-50 disabled:hover:scale-100"
132132 >
133133 { manageBillingMutation . isPending ? "Loading..." : "Manage Billing" }
134134 </ button >
@@ -219,7 +219,7 @@ function SignOutSection() {
219219 < button
220220 onClick = { ( ) => signOut . mutate ( ) }
221221 disabled = { signOut . isPending }
222- className = "px-4 h-8 flex items-center text-sm text-red-600 hover:text-red-700 border border-red-200 hover:border-red-300 rounded-full transition-all disabled:opacity-50 disabled:hover:border-red-200"
222+ className = "cursor-pointer px-4 h-8 flex items-center text-sm text-red-600 hover:text-red-700 border border-red-200 hover:border-red-300 rounded-full transition-all disabled:opacity-50 disabled:hover:border-red-200"
223223 >
224224 { signOut . isPending ? "Signing out..." : "Sign out" }
225225 </ button >
Original file line number Diff line number Diff line change 11import Nango from "@nangohq/frontend" ;
22import { createFileRoute } from "@tanstack/react-router" ;
33import { useServerFn } from "@tanstack/react-start" ;
4+ import { useState } from "react" ;
45
56import { nangoCreateConnectSession } from "../../../functions/nango" ;
67
78export const Route = createFileRoute ( "/_view/app/integration" ) ( {
89 component : Component ,
910} ) ;
1011
11- const nango = new Nango ( ) ;
12-
1312function Component ( ) {
1413 const getSessionToken = useServerFn ( nangoCreateConnectSession ) ;
14+ const [ nango ] = useState ( ( ) => new Nango ( ) ) ;
1515
1616 const handleConnect = async ( ) => {
1717 const connect = nango . openConnectUI ( {
Original file line number Diff line number Diff line change @@ -209,12 +209,13 @@ function ContributeBanner() {
209209 "transition-colors" ,
210210 ] ) }
211211 >
212- < Icon icon = "mdi:github" className = "text-base" />
213- < span >
214- < strong > Community-driven:</ strong > Have an idea?{ " " }
215- < span className = "group-hover:underline group-hover:decoration-dotted group-hover:underline-offset-2" >
216- Contribute on GitHub
217- </ span >
212+ Have an idea? Contribute on{ " " }
213+ < span className = "group-hover:underline group-hover:decoration-dotted group-hover:underline-offset-2 items-center inline-flex gap-0.5" >
214+ < Icon
215+ icon = "mdi:github"
216+ className = "text-base inline-block align-middle"
217+ /> { " " }
218+ GitHub
218219 </ span >
219220 </ a >
220221 ) ;
@@ -425,7 +426,7 @@ function DesktopSidebar({
425426} ) {
426427 return (
427428 < aside className = "hidden lg:block w-56 shrink-0" >
428- < div className = "sticky top-[85px] " >
429+ < div className = "sticky top-21.25 " >
429430 < h3 className = "text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-4" >
430431 Categories
431432 </ h3 >
Original file line number Diff line number Diff line change @@ -163,12 +163,13 @@ function ContributeBanner() {
163163 "transition-colors" ,
164164 ] ) }
165165 >
166- < Icon icon = "mdi:github" className = "text-base" />
167- < span >
168- < strong > Community-driven:</ strong > Have a shortcut idea?{ " " }
169- < span className = "group-hover:underline group-hover:decoration-dotted group-hover:underline-offset-2" >
170- Contribute on GitHub
171- </ span >
166+ Have a shortcut idea? Contribute on{ " " }
167+ < span className = "group-hover:underline group-hover:decoration-dotted group-hover:underline-offset-2 items-center inline-flex gap-0.5" >
168+ < Icon
169+ icon = "mdi:github"
170+ className = "text-base inline-block align-middle"
171+ /> { " " }
172+ GitHub
172173 </ span >
173174 </ a >
174175 ) ;
@@ -309,7 +310,7 @@ function DesktopSidebar({
309310} ) {
310311 return (
311312 < aside className = "hidden lg:block w-56 shrink-0" >
312- < div className = "sticky top-[85px] " >
313+ < div className = "sticky top-21.25 " >
313314 < h3 className = "text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-4" >
314315 Categories
315316 </ h3 >
Original file line number Diff line number Diff line change @@ -166,12 +166,13 @@ function ContributeBanner() {
166166 "transition-colors" ,
167167 ] ) }
168168 >
169- < Icon icon = "mdi:github" className = "text-base" />
170- < span >
171- < strong > Community-driven:</ strong > Have a template idea?{ " " }
172- < span className = "group-hover:underline group-hover:decoration-dotted group-hover:underline-offset-2" >
173- Contribute on GitHub
174- </ span >
169+ Have a template idea? Contribute on{ " " }
170+ < span className = "group-hover:underline group-hover:decoration-dotted group-hover:underline-offset-2 items-center inline-flex gap-0.5" >
171+ < Icon
172+ icon = "mdi:github"
173+ className = "text-base inline-block align-middle"
174+ /> { " " }
175+ GitHub
175176 </ span >
176177 </ a >
177178 ) ;
@@ -312,7 +313,7 @@ function DesktopSidebar({
312313} ) {
313314 return (
314315 < aside className = "hidden lg:block w-56 shrink-0" >
315- < div className = "sticky top-[85px] " >
316+ < div className = "sticky top-21.25 " >
316317 < h3 className = "text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-4" >
317318 Categories
318319 </ h3 >
You can’t perform that action at this time.
0 commit comments