Skip to content

Commit f34e073

Browse files
authored
Merge pull request #84 from HusseinSerag/LINTING-feature-plugins
fix: linting issues disrupting github workflow
2 parents 4c96a9f + 73d51b0 commit f34e073

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

src/components/Plugins/PluginCard.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ type PluginCardProps = {
55
plugin: Plugin;
66
}
77
export function PluginCard({ plugin }: PluginCardProps) {
8-
return <section className="border gap-4 flex flex-col max-w-[314px] hover:scale-[1.01] p-4 pt-6 m-auto w-full border-card-border rounded-md h-[300px]">
8+
return <section className="border gap-4 flex
9+
flex-col max-w-[314px] hover:scale-[1.01]
10+
p-4 pt-6 m-auto w-full border-card-border rounded-md h-[300px]">
911
<div className="flex-1 flex flex-col gap-4">
1012
<div>
1113
<div>
@@ -27,9 +29,11 @@ export function PluginCard({ plugin }: PluginCardProps) {
2729
Read more
2830
</button>
2931

30-
<button className="bg-brand-purple text-[12px] flex justify-center items-center gap-1 px-4 pt-[6px] pb-[7px] rounded-md text-white"><span>
31-
View in NPM
32-
</span>
32+
<button className="bg-brand-purple text-[12px] flex justify-center
33+
items-center gap-1 px-4 pt-[6px] pb-[7px] rounded-md text-white">
34+
<span>
35+
View in NPM
36+
</span>
3337
<ExternalLink className="w-4" /></button>
3438
</div>
3539

src/components/Plugins/PluginSearchBar.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ export default function PluginSearchBar() {
1414
}
1515
}
1616
return <div>
17-
<div className='bg-slate-900 border focus-within:ring-2 focus-within:ring-slate-300 border-slate-300 flex rounded-md gap-2 px-3 py-2 max-w-[500px] w-full'>
17+
<div className='bg-slate-900 border focus-within:ring-2 focus-within:ring-slate-300 border-slate-300
18+
flex rounded-md gap-2 px-3 py-2 max-w-[500px] w-full'>
1819
<Search className='text-slate-300 w-4' />
19-
<input value={searchQuery} onChange={(e)=>setSearchQuery(e.target.value)} placeholder='Search plugins...' className='bg-transparent focus:border-0 focus:outline-none focus:ring-0 placeholder:text-sm text-slate-300 rounded-md w-full' />
20+
<input value={searchQuery} onChange={(e)=>setSearchQuery(e.target.value)}
21+
placeholder='Search plugins...'
22+
className='bg-transparent focus:border-0 focus:outline-none focus:ring-0
23+
placeholder:text-sm text-slate-300 rounded-md w-full' />
2024
</div>
2125
</div>
2226
}

src/pages/Plugins.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ const Plugins: React.FC = () => {
2222
<div className='p-8 flex flex-col gap-8 max-w-[1024px] m-auto'>
2323
<PluginSearchBar />
2424
<div className='grid xs:grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-16 gap-y-8'>
25-
{isLoading ? Array.from({length : 9}).map((_ , i)=><Skeleton key={i} width="280px" containerClassName='m-auto' height="300px" />) :
25+
{isLoading ? Array.from({length : 9}).map((_ , i) =>
26+
<Skeleton key={i} width="280px" containerClassName='m-auto' height="300px" />) :
2627
plugins.length > 0 && plugins.map(plugin =>{
2728
return <PluginCard key={plugin.id} plugin={plugin} />
2829
})}
2930
</div>
30-
{!isLoading && error && <h1 className='text-white text-lg flex items-center justify-center '>{error}</h1>
31-
}
31+
{!isLoading && error &&
32+
<h1 className='text-white text-lg flex items-center justify-center '>{error}</h1>}
3233
{
3334
!error && !isLoading && plugins.length == 0 &&
3435
<h1 className='text-white text-lg flex items-center justify-center '>No search results found...</h1>

0 commit comments

Comments
 (0)