Browse Source

160341-178465 textstyletabの修正

mariko-h 2 months ago
parent
commit
0f19994918

+ 6 - 6
apps/app/src/client/components/PageEditor/EditorGuideModal/contents/TextStyleTab.tsx

@@ -7,7 +7,11 @@ const GuideRow = ({
   title,
   code,
   preview,
-}: GuideRowProps) => {
+}: {
+  title: string;
+  code: string;
+  preview: React.ReactNode;
+}) => {
   const { t } = useTranslation();
   const handleCopy = async () => {
     await navigator.clipboard.writeText(code);
@@ -70,7 +74,7 @@ export const TextStyleTab: React.FC = () => {
   const { t } = useTranslation();
   const i18nKey = 'editor_guide.textstyle';
 
-  const TEXT_STYLE_GUIDES: TextStyleGuideItem[] = [
+  const TEXT_STYLE_GUIDES = [
     {
       id: 'bold',
       title: t(`${i18nKey}.bold`),
@@ -192,10 +196,8 @@ export const TextStyleTab: React.FC = () => {
           target="_blank"
           rel="noreferrer"
           className="text-secondary text-decoration-underline"
-
           style={{ color: '#777570' }}
           onClick={(e) => e.stopPropagation()}
-
         >
           {t(`${i18nKey}.link_growi`)}
           <span className="material-symbols-outlined">open_in_new</span>
@@ -210,10 +212,8 @@ export const TextStyleTab: React.FC = () => {
         <a
           href="/Sandbox"
           className="text-secondary text-decoration-underline"
-
           style={{ color: '#777570' }}
           onClick={(e) => e.stopPropagation()}
-          onClick={e => e.stopPropagation()}
         >
           {t(`${i18nKey}.link_sandbox`)}
           <span className="material-symbols-outlined">open_in_new</span>