Skip to content

Commit 68795de

Browse files
committed
fix: eslint and typescript errors
1 parent fc265a7 commit 68795de

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ next.config.js
55
commitlint.config.js
66
node_modules
77
src/types/payload-types.ts
8+
imageLoader.js

src/app/[lang]/(StaticLayout)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default async function Page({ params: { lang } }: IProps) {
106106
{t('page.featured.right')}
107107
</span>
108108
</TextHeader>
109-
<div className="grid h-[40rem] gap-6 md:grid-cols-2 lg:h-[24rem] lg:grid-cols-3">
109+
<div className="grid h-[40rem] gap-6 md:grid-cols-2 lg:h-96 lg:grid-cols-3">
110110
{featuredProjectsHtml.length > 0 ? (
111111
featuredProjectsHtml
112112
) : (

src/components/ui/DarkModeToggleMobile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function DarkModeToggleMobile() {
2525
className="h-10 w-[4.25rem] rounded-full bg-black/40 px-2"
2626
disabled
2727
>
28-
<Switch.Thumb className="block size-6 rounded-full bg-white/80 transition-transform duration-150 data-[state=checked]:translate-x-[1.75rem] motion-reduce:transition-none" />
28+
<Switch.Thumb className="block size-6 rounded-full bg-white/80 transition-transform duration-150 data-[state=checked]:translate-x-7 motion-reduce:transition-none" />
2929
</Switch.Root>
3030
</div>
3131
);
@@ -45,7 +45,7 @@ export default function DarkModeToggleMobile() {
4545
}}
4646
className="h-10 w-[4.25rem] rounded-full bg-black/40 px-2"
4747
>
48-
<Switch.Thumb className="block size-6 rounded-full bg-white/80 transition-transform duration-150 data-[state=checked]:translate-x-[1.75rem] motion-reduce:transition-none" />
48+
<Switch.Thumb className="block size-6 rounded-full bg-white/80 transition-transform duration-150 data-[state=checked]:translate-x-7 motion-reduce:transition-none" />
4949
</Switch.Root>
5050
</div>
5151
);

src/components/ui/form/ui/blocks/yes-no.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,6 @@ export default class YesNoBlock extends YesNo implements IFormNodeBlock {
280280
)}
281281
<YesNoFabric
282282
value={this.answerSlot}
283-
styles={{
284-
yesColor: 'green',
285-
noColor: 'red',
286-
}}
287283
yes={{
288284
label: props.markdownifyToString(this.props.altYes || '') || 'Yes',
289285
color: this.props.colorYes,

src/components/ui/project/experimental/sana/Links.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function ProjectLinks({ links }: ProjectLinksProps) {
1313
{(links ?? []).map((link, index) => (
1414
<div
1515
key={`project-link-${index}` /* eslint-disable-line react/no-array-index-key */}
16-
className="bg-skin-secondary-1 dark:bg-skin-dark-secondary-1 mt-4 flex h-10 w-[6rem] content-end items-center
16+
className="bg-skin-secondary-1 dark:bg-skin-dark-secondary-1 mt-4 flex h-10 w-24 content-end items-center
1717
justify-center rounded-3xl font-bold text-white
1818
hover:text-opacity-70"
1919
>

src/components/ui/project/kroniimap/KroniiMap.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export default function KroniiMap({ submissions, markerMap }: IProps) {
154154
initialSize={8}
155155
scaler={4}
156156
coordinates={[3, 55]}
157-
className="-rotate-12 scale-x-[-1]"
157+
className="-rotate-12 -scale-x-100"
158158
/>
159159
<ScaledMarker
160160
img="https://cdn.holoen.fans/hefw/assets/kroniimap/kronie-plane.gif"
@@ -193,7 +193,7 @@ export default function KroniiMap({ submissions, markerMap }: IProps) {
193193
initialSize={8}
194194
scaler={4}
195195
coordinates={[-129, 40]}
196-
className="-rotate-12 scale-x-[-1]"
196+
className="-rotate-12 -scale-x-100"
197197
/>
198198
<ScaledMarker
199199
img="https://cdn.holoen.fans/hefw/assets/kroniimap/kronie-boat.gif"
@@ -212,7 +212,7 @@ export default function KroniiMap({ submissions, markerMap }: IProps) {
212212
initialSize={8}
213213
scaler={4}
214214
coordinates={[90, 13]}
215-
className="-rotate-12 scale-x-[-1]"
215+
className="-rotate-12 -scale-x-100"
216216
/>
217217
</ZoomableGroup>
218218
</ComposableMap>
@@ -278,7 +278,7 @@ export default function KroniiMap({ submissions, markerMap }: IProps) {
278278
)}
279279
</div>
280280
<div className="flex items-center gap-4">
281-
<div className="h-[36rem] w-[24rem] overflow-y-auto bg-white px-4 py-8 text-black">
281+
<div className="h-[36rem] w-96 overflow-y-auto bg-white px-4 py-8 text-black">
282282
<div className="mb-2 flex items-center gap-4">
283283
{
284284
hasPersonalizedKronie && (
@@ -343,7 +343,7 @@ export default function KroniiMap({ submissions, markerMap }: IProps) {
343343
key={media.id}
344344
src={media.image.url!}
345345
alt={`Submission from ${currentSubmission.author}`}
346-
className="-mt-2 max-h-[30rem] max-w-[42rem] object-contain"
346+
className="-mt-2 max-h-[30rem] max-w-2xl object-contain"
347347
loading={index === 0 ? 'eager' : 'lazy'}
348348
width={1280}
349349
height={780}

0 commit comments

Comments
 (0)