Skip to content

Commit

Permalink
style: prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCassiere committed Nov 28, 2024
1 parent 41ec4d8 commit d99481a
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ import { seo } from '~/utils/seo'
import { capitalize, slugToTitle } from '~/utils/utils'

export const Route = createFileRoute(
'/$libraryId/$version/docs/framework/$framework/examples/$',
'/$libraryId/$version/docs/framework/$framework/examples/$'
)({
head: ({ params }) => {
const library = getLibrary(params.libraryId)

return {
meta: seo({
title: `${capitalize(params.framework)} ${library.name} ${slugToTitle(
params._splat || '',
params._splat || ''
)} Example | ${library.name} Docs`,
description: `An example showing how to implement ${slugToTitle(
params._splat || '',
params._splat || ''
)} in ${capitalize(params.framework)} using ${library.name}.`,
}),
}
Expand Down
4 changes: 2 additions & 2 deletions app/routes/$libraryId/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const Route = createFileRoute('/$libraryId')({
.map(
(framework) =>
`${framework.charAt(0).toUpperCase()}${framework.slice(
1,
)} ${library.name.replace('TanStack ', '')}`,
1
)} ${library.name.replace('TanStack ', '')}`
)
.join(', ')}`
: '',
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_libraries/dedicated-support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Route = createFileRoute('/_libraries/dedicated-support')({
let indices = shuffle(
Array.from({ length: teamMembers.length - 1 })
.fill(0)
.map((_, i) => i + 1),
.map((_, i) => i + 1)
)

return indices
Expand Down
6 changes: 3 additions & 3 deletions app/routes/_libraries/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function Index() {
params
className={twMerge(
`border-4 border-transparent rounded-lg shadow-lg p-4 md:p-8 text-white transition-all bg-white dark:bg-gray-900 dark:border dark:border-gray-800`,
library.cardStyles,
library.cardStyles
)}
style={{
zIndex: i,
Expand All @@ -204,7 +204,7 @@ function Index() {
return (
<div
className={twMerge(
`text-2xl font-extrabold`,
`text-2xl font-extrabold`
// isPending && `[view-transition-name:library-name]`
)}
style={{
Expand All @@ -220,7 +220,7 @@ function Index() {
<div
className={twMerge(
`uppercase text-white bg-yellow-500 rounded-full px-2 py-1 text-xs font-black animate-pulse`,
library.bgStyle,
library.bgStyle
)}
>
{library.badge}
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_libraries/query.$version.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export default function VersionIndex() {
'ReactBricks',
'Nozzle.io',
'Uber',
],
]
)
.map((d, i) => (
<span key={i} className="opacity-70 even:opacity-40">
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_libraries/start.$version.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export default function VersionIndex() {
</a>
<a
href={`https://twitter.com/intent/post?text=${encodeURIComponent(
`TanStack Start is in BETA! It's a new full-stack React framework from @Tan_Stack and you can check it out at https://tanstack.com/start/`,
`TanStack Start is in BETA! It's a new full-stack React framework from @Tan_Stack and you can check it out at https://tanstack.com/start/`
)}`}
target="_blank"
className={`flex items-center gap-2 py-2 px-4 bg-cyan-500 rounded text-white uppercase font-extrabold`}
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_libraries/support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function LoginComp() {
>
{d}
</div>
),
)
)}
</div>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_libraries/table.$version.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export default function TableVersionIndex() {
'TicketMaster',
'Comcast Business',
'Nozzle.io',
],
]
)
.map((d, i) => (
<span key={i} className="opacity-70 even:opacity-40">
Expand Down

0 comments on commit d99481a

Please sign in to comment.