From e867663bf01841684da6c74a7bcac478cf99655a Mon Sep 17 00:00:00 2001 From: Sascha Date: Tue, 25 May 2021 17:31:28 +0200 Subject: [PATCH] Rename default component filename to index.tsx This reduces duplicate filepath components and with it the overall import filepath length. --- .../CloseBugButton/{CloseBugButton.tsx => index.tsx} | 0 .../{CloseBugWithCommentButton.tsx => index.tsx} | 0 .../ReopenBugButton/{ReopenBugButton.tsx => index.tsx} | 0 .../{ReopenBugWithCommentButton.tsx => index.tsx} | 0 webui/src/pages/bug/CommentForm.tsx | 8 ++++---- 5 files changed, 4 insertions(+), 4 deletions(-) rename webui/src/components/CloseBugButton/{CloseBugButton.tsx => index.tsx} (100%) rename webui/src/components/CloseBugWithCommentButton/{CloseBugWithCommentButton.tsx => index.tsx} (100%) rename webui/src/components/ReopenBugButton/{ReopenBugButton.tsx => index.tsx} (100%) rename webui/src/components/ReopenBugWithCommentButton/{ReopenBugWithCommentButton.tsx => index.tsx} (100%) diff --git a/webui/src/components/CloseBugButton/CloseBugButton.tsx b/webui/src/components/CloseBugButton/index.tsx similarity index 100% rename from webui/src/components/CloseBugButton/CloseBugButton.tsx rename to webui/src/components/CloseBugButton/index.tsx diff --git a/webui/src/components/CloseBugWithCommentButton/CloseBugWithCommentButton.tsx b/webui/src/components/CloseBugWithCommentButton/index.tsx similarity index 100% rename from webui/src/components/CloseBugWithCommentButton/CloseBugWithCommentButton.tsx rename to webui/src/components/CloseBugWithCommentButton/index.tsx diff --git a/webui/src/components/ReopenBugButton/ReopenBugButton.tsx b/webui/src/components/ReopenBugButton/index.tsx similarity index 100% rename from webui/src/components/ReopenBugButton/ReopenBugButton.tsx rename to webui/src/components/ReopenBugButton/index.tsx diff --git a/webui/src/components/ReopenBugWithCommentButton/ReopenBugWithCommentButton.tsx b/webui/src/components/ReopenBugWithCommentButton/index.tsx similarity index 100% rename from webui/src/components/ReopenBugWithCommentButton/ReopenBugWithCommentButton.tsx rename to webui/src/components/ReopenBugWithCommentButton/index.tsx diff --git a/webui/src/pages/bug/CommentForm.tsx b/webui/src/pages/bug/CommentForm.tsx index 395b955dcab24559c2acaf42cd9ab7b30f8dfb2d..6d917889c47dd2da521643388dc1bcf18d4dcae9 100644 --- a/webui/src/pages/bug/CommentForm.tsx +++ b/webui/src/pages/bug/CommentForm.tsx @@ -5,10 +5,10 @@ import Paper from '@material-ui/core/Paper'; import { makeStyles, Theme } from '@material-ui/core/styles'; import CommentInput from '../../components/CommentInput/CommentInput'; -import CloseBugButton from 'src/components/CloseBugButton/CloseBugButton'; -import CloseBugWithCommentButton from 'src/components/CloseBugWithCommentButton/CloseBugWithCommentButton'; -import ReopenBugButton from 'src/components/ReopenBugButton/ReopenBugButton'; -import ReopenBugWithCommentButton from 'src/components/ReopenBugWithCommentButton/ReopenBugWithCommentButton'; +import CloseBugButton from 'src/components/CloseBugButton'; +import CloseBugWithCommentButton from 'src/components/CloseBugWithCommentButton'; +import ReopenBugButton from 'src/components/ReopenBugButton'; +import ReopenBugWithCommentButton from 'src/components/ReopenBugWithCommentButton'; import { BugFragment } from './Bug.generated'; import { useAddCommentMutation } from './CommentForm.generated';