From f75d5ac0b7f17e56a5d5b5d5ee36a407a69eb6bf Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Wed, 17 Nov 2021 12:55:39 +0100
Subject: fix(preview): just ditch next image

---
 components/Sidebar/OrgImage.tsx | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

(limited to 'components/Sidebar/OrgImage.tsx')

diff --git a/components/Sidebar/OrgImage.tsx b/components/Sidebar/OrgImage.tsx
index b146c43..0922834 100644
--- a/components/Sidebar/OrgImage.tsx
+++ b/components/Sidebar/OrgImage.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @next/next/no-img-element */
 import React, { useEffect, useState } from 'react'
 import Image from 'next/image'
 import path from 'path'
@@ -45,15 +46,8 @@ export const OrgImage = (props: OrgImageProps) => {
   const encodedPath = encodeURIComponent(encodeURIComponent(fullPath))
 
   return (
-    <Container>
-      <Image
-        layout="responsive"
-        loader={homeLoader}
-        src={encodedPath}
-        alt=""
-        width="100%"
-        height="100%"
-      />
+    <Container my={4} position="relative">
+      <img alt="Wow, an image." src={`http://localhost:35901/img/${encodedPath}`} />
     </Container>
   )
 }
-- 
cgit v1.2.3

