clean up article list page
This commit is contained in:
@@ -43,7 +43,7 @@ export default function Navbar() {
|
|||||||
focus-within:ring-2
|
focus-within:ring-2
|
||||||
focus-within:ring-gray-300
|
focus-within:ring-gray-300
|
||||||
hover:bg-gray-200"
|
hover:bg-gray-200"
|
||||||
placeholder="Search" fullWidth={true} disableUnderline={true}
|
placeholder="Search" fullWidth={false} disableUnderline={true}
|
||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
className="
|
className="
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import { Button } from '@mui/material';
|
// import { Button } from '@mui/material';
|
||||||
import type { Article } from '../types/Article.ts';
|
import type { Article } from '../types/Article.ts';
|
||||||
import { ArticleListSchema } from '../types/Article.ts';
|
import { ArticleListSchema } from '../types/Article.ts';
|
||||||
import ArticleCard from '../components/ArticleCard.tsx';
|
import ArticleCard from '../components/ArticleCard.tsx';
|
||||||
@@ -27,16 +27,13 @@ export default function ArticleList() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-3 flex flex-col gap-5">
|
<div className="p-3 flex flex-col gap-5">
|
||||||
<p>
|
{/*<Button
|
||||||
List of articles to be populated and searchable
|
|
||||||
</p>
|
|
||||||
<Button
|
|
||||||
style={{ border: "solid", borderWidth: "1px" }}
|
style={{ border: "solid", borderWidth: "1px" }}
|
||||||
onClick={() => getAllArticles()}
|
onClick={() => getAllArticles()}
|
||||||
>
|
>
|
||||||
Refresh
|
Refresh
|
||||||
</Button>
|
</Button>*/}
|
||||||
<div className="flex flex-col gap-2">
|
<div className="grid [grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))] gap-5">
|
||||||
{articles.map((article) => (<ArticleCard key={article.id} article={article} />))}
|
{articles.map((article) => (<ArticleCard key={article.id} article={article} />))}
|
||||||
</div>
|
</div>
|
||||||
</div >
|
</div >
|
||||||
|
|||||||
Reference in New Issue
Block a user