From fb22ecbf228e9aea4a3ee406e1a9742b879323cd Mon Sep 17 00:00:00 2001 From: L&H Date: Wed, 27 Dec 2023 16:02:44 +0800 Subject: [PATCH] chore: remove `in` prefix --- apps/react-demo/src/component/atom/Heading.tsx | 2 +- apps/react-demo/src/component/mobx/MobxSubmit.tsx | 2 +- apps/react-demo/src/component/mobx/MobxThemeSwitch.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/react-demo/src/component/atom/Heading.tsx b/apps/react-demo/src/component/atom/Heading.tsx index 5ce0448..102f705 100644 --- a/apps/react-demo/src/component/atom/Heading.tsx +++ b/apps/react-demo/src/component/atom/Heading.tsx @@ -4,7 +4,7 @@ import { memo } from 'react'; * @desc Pure React Component (Can reuse in other project) * @desc React memo example */ -export const Heading = memo(function InHeading() { +export const Heading = memo(function Heading() { // Check console message in devtool console.log('[debug] Every component should be memoized and log once'); return

Hello world! (Static Content)

; diff --git a/apps/react-demo/src/component/mobx/MobxSubmit.tsx b/apps/react-demo/src/component/mobx/MobxSubmit.tsx index f27a4ad..1903bd4 100644 --- a/apps/react-demo/src/component/mobx/MobxSubmit.tsx +++ b/apps/react-demo/src/component/mobx/MobxSubmit.tsx @@ -6,7 +6,7 @@ import { useSubmitStore } from '../../store/app/submit.store'; /** * @desc View with Store (Cannot reuse without same store) */ -export const MobxSubmit = observer(function InMobxSubmit() { +export const MobxSubmit = observer(function MobxSubmit() { // App store (Mobx) const submitStore = useSubmitStore(); const onClick = useCallback(() => { diff --git a/apps/react-demo/src/component/mobx/MobxThemeSwitch.tsx b/apps/react-demo/src/component/mobx/MobxThemeSwitch.tsx index 246635e..09d4a7d 100644 --- a/apps/react-demo/src/component/mobx/MobxThemeSwitch.tsx +++ b/apps/react-demo/src/component/mobx/MobxThemeSwitch.tsx @@ -2,7 +2,7 @@ import { observer } from 'mobx-react-lite'; import { useEffect } from 'react'; import { useThemeStore } from '../../store/global/theme.store'; -export const MobxThemeSwitch = observer(function InMobxThemeSwitch() { +export const MobxThemeSwitch = observer(function MobxThemeSwitch() { const themeStore = useThemeStore(); useEffect(() => {