Browse Source

refactor: remove unused styles and variables from TreeNameInput component

Yuki Takei 4 months ago
parent
commit
c2353f9f3c

+ 0 - 10
apps/app/src/features/page-tree/components/TreeNameInput.module.scss

@@ -1,10 +0,0 @@
-@use './tree-item-variables' as vars;
-
-.tree-name-input {
-  width: 100%;
-
-  input {
-    height: vars.$tree-item-height;
-    font-size: 14px;
-  }
-}

+ 1 - 4
apps/app/src/features/page-tree/components/TreeNameInput.tsx

@@ -12,9 +12,6 @@ import {
 import { CREATING_PAGE_VIRTUAL_ID } from '../constants/_inner';
 import { CREATING_PAGE_VIRTUAL_ID } from '../constants/_inner';
 import type { TreeItemToolProps } from '../interfaces';
 import type { TreeItemToolProps } from '../interfaces';
 
 
-import styles from './TreeNameInput.module.scss';
-
-const moduleClass = styles['tree-name-input'] ?? '';
 
 
 type TreeNameInputProps = {
 type TreeNameInputProps = {
   /**
   /**
@@ -58,7 +55,7 @@ const TreeNameInputSubstance: FC<TreeNameInputProps> = ({
   const isInvalid = validationResult != null;
   const isInvalid = validationResult != null;
 
 
   return (
   return (
-    <div className={`${moduleClass} ${className ?? ''} flex-fill`}>
+    <div className={`${className ?? ''} flex-fill`}>
       <input
       <input
         {...inputProps}
         {...inputProps}
         onChange={(e) => {
         onChange={(e) => {

+ 0 - 1
apps/app/src/features/page-tree/components/_tree-item-variables.scss

@@ -1,3 +1,2 @@
 $btn-triangle-min-width: 35px;
 $btn-triangle-min-width: 35px;
-$tree-item-height: 40px;
 $indent-size: 10px;
 $indent-size: 10px;