MCPcopy Create free account
hub / github.com/bytebase/bytebase / handleHide

Function handleHide

frontend/src/react/components/Quickstart.tsx:267–280  ·  view source on GitHub ↗
(silent = false)

Source from the content-addressed store, hash-verified

265 }, [currentStep, introList.length]);
266
267 const handleHide = (silent = false) => {
268 useAppStore
269 .getState()
270 .saveIntroStateByKey({ key: "hidden", newState: true });
271 if (!silent) {
272 pushNotification({
273 module: "bytebase",
274 style: "INFO",
275 title: t("quick-start.notice.title"),
276 description: t("quick-start.notice.desc"),
277 manualHide: true,
278 });
279 }
280 };
281
282 if (!showQuickstart || introList.length === 0) {
283 return null;

Callers 1

QuickstartFunction · 0.85

Calls 2

pushNotificationFunction · 0.90
tFunction · 0.50

Tested by

no test coverage detected