Skip to content

Commit

Permalink
chore: fix links in examples (#1695)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Jul 4, 2024
1 parent 891fa88 commit 610e49b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/Button/__tests__/Button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe('Button', () => {
});

test('should render <a /> tag', () => {
const href = 'https://yandex.ru';
const href = 'https://gravity-ui.com';
const target = '_blank';

render(<Button href={href} target={target} />);
Expand Down
2 changes: 1 addition & 1 deletion src/components/DropdownMenu/__stories__/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const optionsAssorted: DropdownMenuItem<unknown>[] = [
action: () => console.log('==> link action called'),
text: 'I am a link item',
title: '(I open in new folder)',
href: 'https://cloud.yandex.com',
href: 'https://gravity-ui.com',
target: '_blank',
rel: 'noopener noreferrer',
},
Expand Down
11 changes: 4 additions & 7 deletions src/components/Menu/__stories__/Menu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,11 @@ export const ItemTheme: StoryFn<MenuProps> = (args) => (

export const ItemLink: StoryFn<MenuProps> = (args) => (
<Menu {...args}>
<Menu.Item href="https://yandex.ru" target="_blank">
yandex.ru
<Menu.Item href="https://gravity-ui.com" target="_blank">
gravity-ui.com
</Menu.Item>
<Menu.Item href="https://ya.ru" target="_blank">
ya.ru
</Menu.Item>
<Menu.Item href="https://ya.ru" target="_blank" disabled>
disabled ya.ru
<Menu.Item href="https://gravity-ui.com" target="_blank" disabled>
disabled gravity-ui.com
</Menu.Item>
</Menu>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Popover/__stories__/Popover.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ FullFeatured.args = {
links: [
{
text: 'Link with a href',
href: 'https://yandex.ru',
href: 'https://gravity-ui.com',
},
],
className: 'demo-icon-tooltip',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Popover/__tests__/Popover.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ test('Renders with html content', () => {
test('Renders with links', () => {
const linkWithHrefConfig = {
text: 'Link with a href',
href: 'https://yandex.ru',
href: 'https://gravity-ui.com',
};

render(
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/__stories__/Table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const WithTableActionsTemplate: StoryFn<TableProps<DataItem>> = (args) => {
{
text: 'with href',
theme: 'normal',
href: 'https://cloud.yandex.com',
href: 'https://gravity-ui.com',
target: '_blank',
rel: 'noopener noreferrer',
handler: () => {},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toaster/__stories__/ToasterShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const ToasterDemo = ({
lineHeight: '24px',
}}
>
Keep track of alerts in Yandex Cloud mobile app
Keep track of alerts
</div>
<div style={{color: 'rgba(0, 0, 0, 0.7)'}}>
Try to view alerts in mobile app.
Expand Down

0 comments on commit 610e49b

Please sign in to comment.