Skip to content

Commit

Permalink
refactor: Sections 디렉터리 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-yn committed Dec 18, 2023
1 parent bdd1a78 commit f519ac1
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import LinkProfileList from '@/components/LinkProfileList/server/LinkProfileList';
import Home from '@/components/Pages/Home/Home';
import LinkProfileList from '@/components/Sections/LinkProfileList/server/LinkProfileList';

export default async function HomePage() {
return (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { PropsWithChildren } from 'react';
import { getClient } from '@/apollo/apollo-client';
import LinkProfile from '@/components/LinkProfile/LinkProfile';
import { getImageByIdQuery } from '@/components/LinkProfileList/server/helper/getImageByIdQuery';
import { getSNSByUserIdQuery } from '@/components/LinkProfileList/server/helper/getSNSByUserIdQuery';
import { getImageByIdQuery } from '@/components/Sections/LinkProfileList/server/helper/getImageByIdQuery';
import { getSNSByUserIdQuery } from '@/components/Sections/LinkProfileList/server/helper/getSNSByUserIdQuery';
import { getProfileSocialData } from '@/helper/getProfileSocialData';
import { getStaticContext } from '@/utils/context/StaticContext';
import { userDataSort } from '../helper/userDataSort';
Expand Down
11 changes: 11 additions & 0 deletions src/stories/Components/LinkProfile.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ const meta: Meta<typeof LinkProfile> = {
component: LinkProfile,
tags: ['autodocs'],
parameters: { layout: 'fullscreen' },
decorators: [
(Story) => (
<div
style={{
display: 'inline-flex',
}}
>
<Story />
</div>
),
],
};

type Story = StoryObj<typeof LinkProfile>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Meta, StoryObj } from '@storybook/react';
import Keyword from '@/components/Keyword/Keyword';
import Keyword from '@/components/Sections/Keyword/Keyword';
import { backgroundColorVariants } from '@/styles/common/color.css';

const meta: Meta<typeof Keyword> = {
title: 'Components/Keyword',
title: 'Components/Sections/Keyword',
component: Keyword,
tags: ['autodocs'],
parameters: { layout: 'fullscreen' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ApolloWrapper } from '@/apollo/apollo-wrapper';
import LinkProfileList from '@/components/LinkProfileList/client/LinkProfileList';
import Home from '@/components/Pages/Home/Home';

<Meta title="Components/LinkProfileList" />
<Meta title="Components/Sections/LinkProfileList" />

# LinkProfileList

Expand Down

0 comments on commit f519ac1

Please sign in to comment.