MCPcopy
hub / github.com/graphif/project-graph / randomizeSlogan

Function randomizeSlogan

app/src/components/welcome-page.tsx:100–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99 // 随机选择一条slogan
100 const randomizeSlogan = () => {
101 const randomIndex = Math.floor(Math.random() * slogans.length);
102 setCurrentSlogan(slogans[randomIndex]);
103 };
104
105 async function refresh() {
106 setIsLoading(true);

Callers 1

WelcomePageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected