Explorar o código

refactor: rename methodButtonName to methodButtonIconName for clarity

Shun Miyazawa hai 8 meses
pai
achega
8cdc17d04e

+ 2 - 2
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantManagementModal/SelectablePagePageList.tsx

@@ -27,7 +27,7 @@ export const SelectablePagePageList = (props: Props): JSX.Element => {
 
 
   const { t } = useTranslation();
   const { t } = useTranslation();
 
 
-  const methodButtonName = useMemo(() => {
+  const methodButtonIconName = useMemo(() => {
     switch (method) {
     switch (method) {
       case 'add':
       case 'add':
         return 'add_circle';
         return 'add_circle';
@@ -65,7 +65,7 @@ export const SelectablePagePageList = (props: Props): JSX.Element => {
         }}
         }}
       >
       >
         <span className="material-symbols-outlined">
         <span className="material-symbols-outlined">
-          {methodButtonName}
+          {methodButtonIconName}
         </span>
         </span>
       </button>
       </button>
     );
     );