From 04ab39a3eca04bf4d9251187dcf8c440e644d3cb Mon Sep 17 00:00:00 2001 From: monoid Date: Thu, 1 Jun 2023 14:10:41 +0900 Subject: [PATCH] chore: remove useless comments --- src/client/component/contentinfo.tsx | 22 +++++++--------------- src/server.ts | 1 - 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/src/client/component/contentinfo.tsx b/src/client/component/contentinfo.tsx index 579fc80..0c764c9 100644 --- a/src/client/component/contentinfo.tsx +++ b/src/client/component/contentinfo.tsx @@ -81,15 +81,8 @@ export const ContentInfo = (props: { gallery?: string, short?: boolean }) => { - //const classes = useStyles(); const theme = useTheme(); const document = props.document; - /*const rootName = props.short ? classes.short_root : classes.root; - const thumbnail_anchor = props.short ? classes.short_thumbnail_anchor : ""; - const thumbnail_content = props.short ? classes.short_thumbnail_content : - classes.thumbnail_content; - const subinfoContainer = props.short ? classes.short_subinfoContainer : - classes.subinfoContainer;*/ const url = props.gallery === undefined ? makeContentReaderUrl(document.id) : makeContentInfoUrl(document.id); return ( - {document.deleted_at === null ? () - : (Deleted)} + : (Deleted)} - - + + {document.title} - - {props.short ? ({document.tags.map(x => + + {props.short ? ({document.tags.map(x => () )}) : ( ) + >) } {document.deleted_at != null && diff --git a/src/server.ts b/src/server.ts index f1630bb..85b0a57 100644 --- a/src/server.ts +++ b/src/server.ts @@ -228,7 +228,6 @@ class ServerApplication{ return app; } } -//let Koa = require("koa"); export async function create_server(){ return await ServerApplication.createServer();