-
Notifications
You must be signed in to change notification settings - Fork 186
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
5df8e90
commit 6a1e0ba
Showing
3 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
14 changes: 12 additions & 2 deletions
14
packages/codemods/src/transforms/v7/__testfixtures__/horizontal-scroll/basic.input.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 |
---|---|---|
@@ -1,10 +1,20 @@ | ||
import { } from '@vkontakte/vkui'; | ||
import { HorizontalScroll } from '@vkontakte/vkui'; | ||
import React from 'react'; | ||
import '@vkontakte/vkui/dist/vkui.css'; | ||
|
||
const App = () => { | ||
return ( | ||
<React.Fragment> | ||
|
||
<HorizontalScroll inline> | ||
<div /> | ||
<div /> | ||
<div /> | ||
</HorizontalScroll> | ||
<HorizontalScroll arrowSize="m" inline={true}> | ||
<div /> | ||
<div /> | ||
<div /> | ||
</HorizontalScroll> | ||
</React.Fragment> | ||
); | ||
}; |
24 changes: 24 additions & 0 deletions
24
packages/codemods/src/transforms/v7/__tests__/__snapshots__/horizontal-scroll.ts.snap
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,24 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`horizontal-scroll transforms correctly 1`] = ` | ||
"import { HorizontalScroll } from '@vkontakte/vkui'; | ||
import React from 'react'; | ||
import '@vkontakte/vkui/dist/vkui.css'; | ||
const App = () => { | ||
return ( | ||
(<React.Fragment> | ||
<HorizontalScroll> | ||
<div /> | ||
<div /> | ||
<div /> | ||
</HorizontalScroll> | ||
<HorizontalScroll arrowSize="m"> | ||
<div /> | ||
<div /> | ||
<div /> | ||
</HorizontalScroll> | ||
</React.Fragment>) | ||
); | ||
};" | ||
`; |
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