Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix links in examples #1695

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading