diff --git a/app/on-boarding/page.tsx b/app/on-boarding/page.tsx
index 59e28410..9826376e 100644
--- a/app/on-boarding/page.tsx
+++ b/app/on-boarding/page.tsx
@@ -12,9 +12,9 @@ import {
ProgressIndicator,
SkipButton,
Steps,
+ stepsIntroduce,
useProgressIndicator,
} from '@/features/on-boarding';
-import { OnBoardingImages } from '@/public/images/on-boarding';
import { css } from '@/styled-system/css';
export default function OnBoarding() {
@@ -57,7 +57,7 @@ export default function OnBoarding() {
- {step < OnBoardingImages.length - 1 ? (
+ {step < stepsIntroduce.length - 1 ? (
diff --git a/features/on-boarding/components/molecules/steps.tsx b/features/on-boarding/components/molecules/steps.tsx
index dd4ac1ea..9d482cc7 100644
--- a/features/on-boarding/components/molecules/steps.tsx
+++ b/features/on-boarding/components/molecules/steps.tsx
@@ -1,7 +1,6 @@
import { Fragment } from 'react';
import { Image } from '@/components/atoms';
-import { OnBoardingImages } from '@/public/images/on-boarding';
import { css } from '@/styled-system/css';
import { flex } from '@/styled-system/patterns';
@@ -12,7 +11,7 @@ interface StepsProps {
}
export function Steps({ current }: StepsProps) {
- const highlightText = (text: string, highlightTexts: string[]) => {
+ const getHighlightedText = (text: string, highlightTexts: string[]) => {
const regex = new RegExp(`(${highlightTexts.join('|')})`, 'g');
const parts = text.split(regex);
@@ -30,7 +29,7 @@ export function Steps({ current }: StepsProps) {
return (
- {highlightText(
+ {getHighlightedText(
stepsIntroduce[current].total,
stepsIntroduce[current].highlight,
)}
@@ -38,7 +37,7 @@ export function Steps({ current }: StepsProps) {