summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-11-17 12:55:39 +0100
committerThomas F. K. Jorna <[email protected]>2021-11-17 12:55:39 +0100
commitf75d5ac0b7f17e56a5d5b5d5ee36a407a69eb6bf (patch)
tree591a35f947d0ecd03ef084b43ae4a48ee6c00ab6 /components
parent960ed1869d61ee04d52517efef91a14f9cc6dee5 (diff)
fix(preview): just ditch next image
Diffstat (limited to 'components')
-rw-r--r--components/Sidebar/OrgImage.tsx12
1 files changed, 3 insertions, 9 deletions
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>
)
}