Skip to content

Commit

Permalink
try exporting Button2 as Button2
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolinisoup committed Jun 29, 2023
1 parent a0fc975 commit 48938d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/drafts/Button2/Button.dev.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {SearchIcon, TriangleDownIcon, EyeIcon} from '@primer/octicons-react'
import React from 'react'
import {Button} from '.'
import {Button2 as Button} from '.'

export default {
title: 'Drafts/Components/Button/DevOnly',
Expand Down
2 changes: 1 addition & 1 deletion src/drafts/Button2/Button.features.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {EyeIcon, TriangleDownIcon, HeartIcon} from '@primer/octicons-react'
import React, {useState} from 'react'
import {Button} from '.'
import {Button2 as Button} from '.'

export default {
title: 'Drafts/Components/Button/Features',
Expand Down
2 changes: 1 addition & 1 deletion src/drafts/Button2/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import {EyeClosedIcon, EyeIcon, SearchIcon, TriangleDownIcon, XIcon, HeartIcon} from '@primer/octicons-react'
import {Meta, StoryFn} from '@storybook/react'
import {Button} from '.'
import {Button2 as Button} from '.'
import {OcticonArgType} from '../../utils/story-helpers'

export default {
Expand Down
2 changes: 1 addition & 1 deletion src/drafts/Button2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import {ButtonComponent} from './Button'
import {Counter} from './ButtonCounter'
export type {ButtonProps, IconButtonProps} from './types'

export const Button = Object.assign(ButtonComponent, {
export const Button2 = Object.assign(ButtonComponent, {
Counter,
})

0 comments on commit 48938d6

Please sign in to comment.