Skip to content

Commit

Permalink
♻️ refactor: PhilosophyValuesに命名を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi0602 committed Mar 30, 2024
1 parent 4c51403 commit 79436aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { Value as DomainValue } from '.';
import { PhilosophyValues as DomainPhilosophyValues } from '.';

import type { Meta, StoryObj } from '@storybook/react';

const meta: Meta<typeof DomainValue> = {
title: 'Domain/Value',
component: DomainValue,
const meta: Meta<typeof DomainPhilosophyValues> = {
title: 'Domain/PhilosophyValues',
component: DomainPhilosophyValues,
};
export default meta;

type Story = StoryObj<typeof DomainValue>;
export const Value: Story = {
type Story = StoryObj<typeof DomainPhilosophyValues>;
export const PhilosophyValues: Story = {
render: () => (
<DomainValue
<DomainPhilosophyValues
values={[
{
title: '安心、安全、Unstoppable',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { styles } from './styles.css';

import type { FC } from 'react';

type ValueItem = {
type PhilosophyValuesItem = {
title: string;
description: string;
};
Expand All @@ -14,10 +14,10 @@ type Props = {
/**
* タイトルと説明文を持つ配列
*/
values: ValueItem[];
values: PhilosophyValuesItem[];
};

const Value: FC<Props> = ({ values }) => {
const PhilosophyValues: FC<Props> = ({ values }) => {
return (
<section className={styles.section}>
<Heading className={styles.heading} tagName="h2">
Expand All @@ -42,4 +42,4 @@ const Value: FC<Props> = ({ values }) => {
);
};

export { Value };
export { PhilosophyValues };
File renamed without changes.

0 comments on commit 79436aa

Please sign in to comment.