-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into jl/added-generic-polling-hook-replace-use…
…Safe
- Loading branch information
Showing
79 changed files
with
3,003 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { NotificationDetailAddress } from './notification-detail-address'; |
28 changes: 28 additions & 0 deletions
28
ui/components/multichain/notification-detail-address/notification-detail-address.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { Meta } from '@storybook/react'; | ||
import { | ||
NotificationDetailAddress, | ||
NotificationDetailAddressProps, | ||
} from './notification-detail-address'; | ||
|
||
export default { | ||
title: | ||
'Components/Multichain/Notification/NotificationDetail/NotificationDetailAddress', | ||
component: NotificationDetailAddress, | ||
} as Meta; | ||
|
||
const Template = (args: NotificationDetailAddressProps) => ( | ||
<NotificationDetailAddress {...args} /> | ||
); | ||
|
||
export const DefaultStory = Template.bind({}); | ||
DefaultStory.args = { | ||
side: 'From (You)', | ||
address: '0x7830c87C02e56AFf27FA8Ab1241711331FA86F43', | ||
}; | ||
|
||
export const ToStory = Template.bind({}); | ||
ToStory.args = { | ||
side: 'To', | ||
address: '0x55FE002aefF02F77364de339a1292923A15844B8', | ||
}; |
15 changes: 15 additions & 0 deletions
15
ui/components/multichain/notification-detail-address/notification-detail-address.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import { render, screen } from '@testing-library/react'; | ||
import { NotificationDetailAddress } from './notification-detail-address'; | ||
|
||
describe('NotificationDetailAddress', () => { | ||
it('renders without crashing', () => { | ||
render( | ||
<NotificationDetailAddress | ||
side="From" | ||
address="0x7830c87C02e56AFf27FA8Ab1241711331FA86F43" | ||
/>, | ||
); | ||
expect(screen.getByText('From')).toBeInTheDocument(); | ||
}); | ||
}); |
Oops, something went wrong.