Skip to content

Commit

Permalink
#324 GlobeIcon を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed Sep 23, 2024
1 parent e8da752 commit 8c207fc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/app/_components/icons/GlobeIcon.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { Meta, StoryObj } from '@storybook/react';
import { GlobeIcon } from './GlobeIcon';

Check warning on line 2 in src/app/_components/icons/GlobeIcon.stories.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/icons/GlobeIcon.stories.tsx#L2

Added line #L2 was not covered by tests

const meta = {
component: GlobeIcon,
} satisfies Meta<typeof GlobeIcon>;

Check warning on line 6 in src/app/_components/icons/GlobeIcon.stories.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/icons/GlobeIcon.stories.tsx#L4-L6

Added lines #L4 - L6 were not covered by tests

export default meta;

Check warning on line 8 in src/app/_components/icons/GlobeIcon.stories.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/icons/GlobeIcon.stories.tsx#L8

Added line #L8 was not covered by tests

type Story = StoryObj<typeof meta>;

export const Default: Story = {};

Check warning on line 12 in src/app/_components/icons/GlobeIcon.stories.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/icons/GlobeIcon.stories.tsx#L12

Added line #L12 was not covered by tests
21 changes: 21 additions & 0 deletions src/app/_components/icons/GlobeIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { JSX } from 'react';

export const GlobeIcon = (): JSX.Element => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"

Check warning on line 10 in src/app/_components/icons/GlobeIcon.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/icons/GlobeIcon.tsx#L3-L10

Added lines #L3 - L10 were not covered by tests
>
<path
d="M21 12C21 16.9706 16.9706 21 12 21M21 12C21 7.02944 16.9706 3 12 3M21 12H3M12 21C7.02944 21 3 16.9706 3 12M12 21C13.6569 21 15 16.9706 15 12C15 7.02944 13.6569 3 12 3M12 21C10.3431 21 9 16.9706 9 12C9 7.02944 10.3431 3 12 3M3 12C3 7.02944 7.02944 3 12 3"
stroke="#FFF7ED"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"

Check warning on line 17 in src/app/_components/icons/GlobeIcon.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/icons/GlobeIcon.tsx#L12-L17

Added lines #L12 - L17 were not covered by tests
/>
</svg>
);
};

Check warning on line 21 in src/app/_components/icons/GlobeIcon.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/icons/GlobeIcon.tsx#L21

Added line #L21 was not covered by tests

0 comments on commit 8c207fc

Please sign in to comment.