File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ const ArticleViewsGraph = ({ articles }) => {
6060 } , [ articles ] ) ;
6161
6262 return (
63- < div className = 'graph w-full flex flex-col items-center' >
64- < h2 className = 'font-bold text-white text-xl self-start' > Views for Multiple Articles</ h2 >
63+ < div className = 'graph w-full flex flex-col items-center p-4 bg-white border border-gray-300 rounded-md ' >
64+ < h2 className = 'font-bold text-black text-xl self-start' > Views for Multiple Articles</ h2 >
6565 { loading ? (
6666 < Loading />
6767 ) : viewData . labels ? (
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default function PageViews() {
3434 < OptionsForm />
3535 < div className = 'w-3/4' >
3636 < Pages />
37- < ArticlesGraph />
37+ { pages . length === 0 ? < > </ > : < ArticlesGraph /> }
3838 </ div >
3939 </ PageViewsContext . Provider >
4040 </ div >
You can’t perform that action at this time.
0 commit comments