File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ import Image from 'next/image'
12const CustomTable = ( { data } : any ) => {
23 return (
34 < div className = "flex flex-col p-10" >
@@ -49,10 +50,12 @@ const CustomTable = ({ data }: any) => {
4950 < td className = "px-6 py-4 whitespace-nowrap" >
5051 < div className = "flex items-center" >
5152 < div className = "flex-shrink-0 h-10 w-10" >
52- < img
53+ < Image
54+ width = { 50 }
55+ height = { 50 }
5356 className = "h-10 w-10 rounded-full"
5457 src = {
55- 'https://images.unsplash.com /photo-1570295999919-56ceb5ecca61'
58+ 'https://example.comm /photo-1570295999919-56ceb5ecca61'
5659 }
5760 alt = ""
5861 />
Original file line number Diff line number Diff line change 11module . exports = {
22 reactStrictMode : true ,
3+ images : {
4+ domains : [ 'images.unsplash.com' ] ,
5+ } ,
36}
7+
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const Home: FC<{ data: string[] }> = ({ data }) => {
2525 ) ;
2626} ;
2727
28- export async function getServerSideProps ( context ) {
28+ export async function getServerSideProps ( ) {
2929 const { data } = await axios . get ( `${ process . env . API_URL } /users` ) ;
3030
3131 return {
You can’t perform that action at this time.
0 commit comments