Skip to content

Commit

Permalink
sidebar in ui
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Mar 17, 2024
1 parent 87038a4 commit 8da4184
Show file tree
Hide file tree
Showing 12 changed files with 526 additions and 497 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import type { Meta, StoryObj } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { ActionButton } from './Actions';

const meta = {
title: 'ActionButton',
component: ActionButton,
argTypes: {
onPress: { action: 'pressed the button' },
},
args: {
text: 'Press me!',
onPress: action('pressed'),
},
parameters: {
notes: `
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-ui/src/Explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const Explorer: FC<ExplorerProps> = React.memo(function Explorer({
key={refId}
isLoading={isLoading}
isBrowsing={isBrowsing}
selectedStoryId={/* selected?.refId === ref.id ? */ selected.storyId /* : null */}
selectedStoryId={selected?.refId === ref.id ? selected.storyId : null}
setSelection={setSelection}
// highlightedRef={highlightedRef}
// setHighlighted={setHighlighted}
Expand Down
3 changes: 1 addition & 2 deletions packages/react-native-ui/src/Refs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ import { styled } from '@storybook/react-native-theming';

import { Tree } from './Tree';

// import { DEFAULT_REF_ID } from './Sidebar';
import type { RefType } from './types';
import { getStateType } from './util/tree';
import { DEFAULT_REF_ID } from './constants';
// import { DEFAULT_REF_ID } from './Sidebar';

// import { CollapseIcon } from './icon/CollapseIcon';

// import { getStateType } from '../../utils/tree';
Expand Down
Loading

0 comments on commit 8da4184

Please sign in to comment.