-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98d1a2e
commit d093514
Showing
22 changed files
with
88 additions
and
21 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
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
Binary file modified
BIN
+3.03 KB
(100%)
..._screenshots__/AddressTokens.pw.tsx_dark-color-mode_collections-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+365 Bytes
(100%)
...ress/__screenshots__/AddressTokens.pw.tsx_dark-color-mode_erc20-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+976 Bytes
(100%)
...dress/__screenshots__/AddressTokens.pw.tsx_dark-color-mode_nfts-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.79 KB
(100%)
...ddress/__screenshots__/AddressTokens.pw.tsx_default_collections-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+309 Bytes
(100%)
ui/address/__screenshots__/AddressTokens.pw.tsx_default_erc20-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.07 KB
(100%)
ui/address/__screenshots__/AddressTokens.pw.tsx_default_mobile-collections-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+38 Bytes
(100%)
ui/address/__screenshots__/AddressTokens.pw.tsx_default_mobile-erc20-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+356 Bytes
(100%)
ui/address/__screenshots__/AddressTokens.pw.tsx_default_mobile-nfts-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+821 Bytes
(100%)
ui/address/__screenshots__/AddressTokens.pw.tsx_default_nfts-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+319 Bytes
(100%)
...s/__screenshots__/AddressTokens.pw.tsx_default_update-balances-via-socket-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+331 Bytes
(100%)
...s/__screenshots__/AddressTokens.pw.tsx_default_update-balances-via-socket-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,19 @@ | ||
import { Box } from '@chakra-ui/react'; | ||
import { test, expect } from '@playwright/experimental-ct-react'; | ||
import React from 'react'; | ||
|
||
import TestApp from 'playwright/TestApp'; | ||
|
||
import RadioButtonGroupTest from './specs/RadioButtonGroupTest'; | ||
|
||
test('radio button group', async({ mount }) => { | ||
const component = await mount( | ||
<TestApp> | ||
<Box w="400px" p="10px"> | ||
<RadioButtonGroupTest/> | ||
</Box> | ||
</TestApp>, | ||
); | ||
|
||
await expect(component).toHaveScreenshot(); | ||
}); |
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
Binary file added
BIN
+4.47 KB
...nGroup/__screenshots__/RadioButtonGroup.pw.tsx_default_radio-button-group-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,32 @@ | ||
import React from 'react'; | ||
|
||
import RadioButtonGroup from '../RadioButtonGroup'; | ||
|
||
const TestIcon = ({ className }: {className?: string}) => { | ||
return ( | ||
<svg viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg" className={ className }> | ||
{ /* eslint-disable-next-line max-len */ } | ||
<path fillRule="evenodd" clipRule="evenodd" d="M3.5 11a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0ZM11 1C5.477 1 1 5.477 1 11s4.477 10 10 10 10-4.477 10-10S16.523 1 11 1Zm1.25 5a1.25 1.25 0 1 0-2.5 0v5c0 .69.56 1.25 1.25 1.25h5a1.25 1.25 0 1 0 0-2.5h-3.75V6Z" fill="currentColor" stroke="transparent" strokeWidth=".6" strokeLinecap="round" strokeLinejoin="round"/> | ||
</svg> | ||
); | ||
}; | ||
|
||
type Test = 'v1' | 'v2' | 'v3'; | ||
|
||
const RadioButtonGroupTest = () => { | ||
return ( | ||
<RadioButtonGroup<Test> | ||
// eslint-disable-next-line react/jsx-no-bind | ||
onChange={ () => {} } | ||
defaultValue="v1" | ||
name="test" | ||
options={ [ | ||
{ value: 'v1', title: 'test option 1', icon: TestIcon, onlyIcon: false }, | ||
{ value: 'v2', title: 'test 2', onlyIcon: false }, | ||
{ value: 'v2', title: 'test 2', icon: TestIcon, onlyIcon: true }, | ||
] } | ||
/> | ||
); | ||
}; | ||
|
||
export default RadioButtonGroupTest; |