We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 280932d commit a246301Copy full SHA for a246301
src/features/auth/view/SignInTexts.tsx
@@ -10,13 +10,11 @@ const getRandomTextColor = ({ excluding }: { excluding?: string } = {}) => {
10
return colors[Math.floor(Math.random() * colors.length)]
11
}
12
13
-const INITIAL_TEXT_COLOR = getRandomTextColor()
14
-
15
const SignInTexts = ({ prefix }: { prefix: string }) => {
16
const [characterIndex, setCharacterIndex] = useState(0)
17
const [textIndex, setTextIndex] = useState(0)
18
const [displayedText, setDisplayedText] = useState("")
19
- const [textColor, setTextColor] = useState(INITIAL_TEXT_COLOR)
+ const [textColor, setTextColor] = useState(BASE_COLORS[0])
20
const texts = useMemo(() => [
21
"is a great OpenAPI viewer",
22
"facilitates spec-driven development",
0 commit comments