Skip to content

Commit

Permalink
Update tabbed-dialog prototype page with extracted components
Browse files Browse the repository at this point in the history
Delete local `Dialog` component
  • Loading branch information
lyzadanger committed Jul 24, 2023
1 parent 0f91f9a commit a880749
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 249 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ import {
Card,
CardActions,
CardTitle,
CloseButton,
Dialog,
IconButton,
Input,
InputGroup,
OptionButton,
Slider,
TabList,
Tab,
} from '../../../../';
import {
CancelIcon,
CopyIcon,
EmailIcon,
SocialTwitterIcon,
SocialFacebookIcon,
} from '../../../../';
import type { PresentationalProps } from '../../../../types';
import Library from '../../Library';
import Dialog from './import-export/Dialog';

type DividerProps = PresentationalProps & {
variant: 'full' | 'center' | 'custom';
Expand All @@ -49,11 +50,9 @@ function TabListHeader({ children, onClose }: TabListHeaderProps) {
<div data-testid="tabbed-header" className="flex items-center">
{onClose && (
// This might be extractable as, say, a CloseButton component
<IconButton
<CloseButton
classes="text-[16px] text-grey-6 hover:text-grey-7 hover:bg-grey-3/50 order-last"
title="Close"
icon={CancelIcon}
onClick={onClose}
variant="custom"
size="sm"
/>
Expand Down Expand Up @@ -207,6 +206,7 @@ function TabbedSharePanel() {
variant="custom"
title="Share annotations"
onClose={() => setPanelOpen(false)}
transitionComponent={Slider}
restoreFocus
>
<TabListHeader onClose={() => setPanelOpen(false)}>
Expand Down

This file was deleted.

0 comments on commit a880749

Please sign in to comment.