MCPcopy Create free account
hub / github.com/dailydotdev/apps / SidebarCompactMock

Function SidebarCompactMock

packages/shared/src/contexts/BootProvider.spec.tsx:304–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302const clientOnlyFlagsKey = `dailydev:settings:clientOnlyFlags:${defaultUser.id}`;
303
304const SidebarCompactMock = () => {
305 const { value, toggle } = useSidebarCompact();
306
307 return (
308 <button onClick={toggle} type="button" data-test-value={value}>
309 Compact sidebar
310 </button>
311 );
312};
313
314const renderWithSidebarCompactFlag = () =>
315 renderComponent(

Callers

nothing calls this directly

Calls 1

useSidebarCompactFunction · 0.90

Tested by

no test coverage detected