Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegach committed Aug 9, 2024
1 parent 81d526f commit 8357b0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
22 changes: 10 additions & 12 deletions apps/addon-catalog/components/search-results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ export const SearchResults = ({
{loading ? <div>Loading...</div> : null}
{!loading && searchResults.length === 0 && <div>No results found</div>}
{!loading && searchResults.length > 0 && (
<>
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2 xl:grid-cols-3">
{searchResults.map((item) => (
<Preview
key={item.name}
orientation="vertical"
element={item}
type={item.type === 'Recipe' ? 'recipe' : 'addon'}
/>
))}
</div>
</>
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2 xl:grid-cols-3">
{searchResults.map((item) => (
<Preview
key={item.name}
orientation="vertical"
element={item}
type={item.type === 'Recipe' ? 'recipe' : 'addon'}
/>
))}
</div>
)}
</div>
);
Expand Down
3 changes: 1 addition & 2 deletions apps/frontpage/components/home/develop/develop.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client';

import React, { useRef } from 'react';
import type { MotionValue } from 'framer-motion';
import { useScroll, useTransform, useSpring, motion } from 'framer-motion';
import Link from 'next/link';
import { ChevronSmallRightIcon } from '@storybook/icons';
Expand All @@ -22,7 +21,7 @@ export function Develop() {
const smoothAppearProgress = useSpring(appearProgress, {
stiffness: 1000,
damping: 100,
}) as MotionValue<number>;
});

// Step 1
const { scrollYProgress: isolationProgress } = useScroll({
Expand Down

0 comments on commit 8357b0c

Please sign in to comment.