Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ZNTA-2514) fix merge conflicts
- Loading branch information
Showing
29 changed files
with
245 additions
and
4,982 deletions.
There are no files selected for viewing
4,717 changes: 0 additions & 4,717 deletions
4,717
...er/zanata-frontend/src/.storybook-frontend/__snapshots__/storyshots-frontend.test.js.snap
Large diffs are not rendered by default.
Oops, something went wrong.
17 changes: 6 additions & 11 deletions
17
server/zanata-frontend/src/app/components/Button/Button.story.js
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,17 +1,12 @@ | ||
// @ts-nocheck | ||
import React from 'react' | ||
import { storiesOf } from '@storybook/react' | ||
import {Button} from 'antd' | ||
import Button from 'antd/lib/button' | ||
import Layout from 'antd/lib/layout' | ||
|
||
storiesOf('Button', module) | ||
.add('default (no test)', () => ( | ||
<span> | ||
<Button className='btn-default'>Default</Button> | ||
<br /> | ||
<hr /> | ||
<Button className='btn-primary'>Primary</Button> | ||
<br /> | ||
<hr /> | ||
<a href="https://ant.design/components/button/"> | ||
Component information</a> | ||
</span> | ||
<Layout> | ||
<Button type='primary'>Primary style</Button> | ||
</Layout> | ||
)) |
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
30 changes: 9 additions & 21 deletions
30
server/zanata-frontend/src/app/components/Tooltip/Tooltip.story.js
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,34 +1,22 @@ | ||
import React from 'react' | ||
import { storiesOf } from '@storybook/react' | ||
import { Button, ButtonToolbar, OverlayTrigger, | ||
Tooltip, Well } from 'react-bootstrap' | ||
import { Well } from 'react-bootstrap' | ||
import { Button, Tooltip, Layout } from 'antd' | ||
|
||
const tooltip = ( | ||
<Tooltip id='tooltip'><strong>Tooltip ahoy!</strong> Check this info. | ||
</Tooltip> | ||
) | ||
const tooltip = <span id='tooltip'><strong>Tooltip ahoy!</strong></span>; | ||
|
||
storiesOf('Tooltip', module) | ||
.add('default', () => ( | ||
.add('default (no test)', () => ( | ||
<span> | ||
<Layout> | ||
<h2><img src="https://i.imgur.com/v4qLk4p.png" width="42px" />Tooltip</h2> | ||
<Well bsSize="large">Tooltip component for a more stylish alternative to that anchor tag <code>title</code> attribute. Attach and position tooltips with <code>OverlayTrigger</code>. | ||
<hr /> | ||
<ul><li><a href="https://react-bootstrap.github.io/components.html#tooltips-props">Props for react-bootstrap Tooltips</a></li></ul> | ||
</Well> | ||
<ButtonToolbar> | ||
<OverlayTrigger placement='left' overlay={tooltip}> | ||
<Button bsStyle='default'>Holy guacamole!</Button> | ||
</OverlayTrigger> | ||
<OverlayTrigger placement='top' overlay={tooltip}> | ||
<Button bsStyle='default'>Holy guacamole!</Button> | ||
</OverlayTrigger> | ||
<OverlayTrigger placement='bottom' overlay={tooltip}> | ||
<Button bsStyle='default'>Holy guacamole!</Button> | ||
</OverlayTrigger> | ||
<OverlayTrigger placement='right' overlay={tooltip}> | ||
<Button bsStyle='default'>Holy guacamole!</Button> | ||
</OverlayTrigger> | ||
</ButtonToolbar> | ||
<Tooltip placement='top' overlay={tooltip}> | ||
<Button className='btn-default'>Holy guacamole!</Button> | ||
</Tooltip> | ||
</Layout> | ||
</span> | ||
)) |
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
Oops, something went wrong.