From f904ffeff10be52608133534fa4c2cc850b2f37e Mon Sep 17 00:00:00 2001 From: Corofides Date: Wed, 8 Nov 2023 12:51:18 +0000 Subject: [PATCH] Remove getRoute from PostPreview. --- src/Widgets/PostPreview/Views/Loaded/Loaded.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Widgets/PostPreview/Views/Loaded/Loaded.js b/src/Widgets/PostPreview/Views/Loaded/Loaded.js index 42715bc..5b1993b 100644 --- a/src/Widgets/PostPreview/Views/Loaded/Loaded.js +++ b/src/Widgets/PostPreview/Views/Loaded/Loaded.js @@ -2,7 +2,7 @@ import React from 'react'; import {css} from "glamor"; import useSettings from "../../../../Hooks/useSettings"; -const Loaded = ({id, published, name, author, image = false, setRoute, ...props}) => { +const Loaded = ({id, published, name, author, image = false, ...props}) => { const {settings} = useSettings(); @@ -37,11 +37,7 @@ const Loaded = ({id, published, name, author, image = false, setRoute, ...props} }); return ( - { - - setRoute("/posts/" + id); - - }} href={process.env.REACT_APP_SITE_URL + "#posts/" + id} {...props} {...postPreviewRule} className={"PostPreview"}> + {image ?
: null}
{published}