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

Function SidebarCompactMock

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

Source from the content-addressed store, hash-verified

396const clientOnlyFlagsKey = `dailydev:settings:clientOnlyFlags:${defaultUser.id}`;
397
398const SidebarCompactMock = () => {
399 const { value, toggle } = useSidebarCompact();
400
401 return (
402 <button onClick={toggle} type="button" data-test-value={value}>
403 Compact sidebar
404 </button>
405 );
406};
407
408const renderWithSidebarCompactFlag = () =>
409 renderComponent(

Callers

nothing calls this directly

Calls 1

useSidebarCompactFunction · 0.90

Tested by

no test coverage detected