mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-28 19:44:23 +01:00
refactor: projects stories directories naming
This commit is contained in:
@@ -1,28 +1,27 @@
|
||||
import NavMobile from "./NavMobile";
|
||||
import { MdHomeFilled, MdLocalFireDepartment } from "react-icons/md";
|
||||
import { MdComment, MdHomeFilled, MdLocalFireDepartment } from "react-icons/md";
|
||||
import { IoExtensionPuzzle } from "react-icons/io5";
|
||||
import { useCallback, useEffect } from "react";
|
||||
import { useAppDispatch, useAppSelector } from "src/utils/hooks";
|
||||
import { openModal } from "src/redux/features/modals.slice";
|
||||
import { setNavHeight } from "src/redux/features/ui.slice";
|
||||
import { useResizeListener } from "src/utils/hooks";
|
||||
import NavDesktop from "./NavDesktop";
|
||||
import { useMediaQuery } from "@react-hookz/web";
|
||||
import { MEDIA_QUERIES } from "src/utils/theme/media_queries";
|
||||
import { BiComment } from "react-icons/bi";
|
||||
|
||||
|
||||
export const navLinks = [
|
||||
{ text: "Explore", url: "/", icon: MdHomeFilled, color: "text-primary-600" },
|
||||
{
|
||||
text: "Hottest",
|
||||
url: "/hottest",
|
||||
icon: MdLocalFireDepartment,
|
||||
text: "Blog",
|
||||
url: "/blog",
|
||||
icon: MdComment,
|
||||
color: "text-primary-600",
|
||||
},
|
||||
{
|
||||
text: "Blog",
|
||||
url: "/blog",
|
||||
icon: BiComment,
|
||||
text: "Hottest",
|
||||
url: "/hottest",
|
||||
icon: MdLocalFireDepartment,
|
||||
color: "text-primary-600",
|
||||
},
|
||||
// {
|
||||
|
||||
@@ -6,7 +6,7 @@ import ProjectCardMiniSkeleton from './ProjectCardMini.Skeleton';
|
||||
|
||||
|
||||
export default {
|
||||
title: 'Projects/Project Card Mini',
|
||||
title: 'Projects/Components/Project Card Mini',
|
||||
component: ProjectCardMini,
|
||||
|
||||
} as ComponentMeta<typeof ProjectCardMini>;
|
||||
@@ -0,0 +1,28 @@
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import { ModifyArgs } from 'src/utils/storybook/utils';
|
||||
import CategoryPage from './CategoryPage';
|
||||
|
||||
export default {
|
||||
title: 'Projects/Category Page',
|
||||
component: CategoryPage,
|
||||
argTypes: {
|
||||
backgroundColor: { control: 'color' },
|
||||
},
|
||||
parameters: {
|
||||
modifyArgs: {
|
||||
router: {
|
||||
routePath: "/:id",
|
||||
currentPath: "/1"
|
||||
}
|
||||
} as ModifyArgs
|
||||
}
|
||||
} as ComponentMeta<typeof CategoryPage>;
|
||||
|
||||
|
||||
const Template: ComponentStory<typeof CategoryPage> = (args) => <CategoryPage {...args as any} ></CategoryPage>
|
||||
|
||||
export const Page = Template.bind({});
|
||||
Page.args = {
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import HeaderImage from './HeaderImage';
|
||||
|
||||
export default {
|
||||
title: 'Category Page/Header Image',
|
||||
title: 'Projects/Category Page/Header Image',
|
||||
component: HeaderImage,
|
||||
argTypes: {
|
||||
backgroundColor: { control: 'color' },
|
||||
|
||||
@@ -4,7 +4,7 @@ import { MOCK_DATA } from 'src/mocks/data';
|
||||
import ProjectsGrid from './ProjectsGrid';
|
||||
|
||||
export default {
|
||||
title: 'Category Page/Projects Grid',
|
||||
title: 'Projects/Category Page/Projects Grid',
|
||||
component: ProjectsGrid,
|
||||
argTypes: {
|
||||
backgroundColor: { control: 'color' },
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import ProjectCardMini from 'src/Components/Cards/ProjectCardMini/ProjectCardMini'
|
||||
import ProjectCardMiniSkeleton from 'src/Components/Cards/ProjectCardMini/ProjectCardMini.Skeleton';
|
||||
|
||||
import ProjectCardMini from "src/features/Projects/Components/ProjectCardMini/ProjectCardMini";
|
||||
import ProjectCardMiniSkeleton from 'src/features/Projects/Components/ProjectCardMini/ProjectCardMini.Skeleton';
|
||||
import { openModal } from 'src/redux/features/modals.slice';
|
||||
import { openProject } from 'src/redux/features/project.slice';
|
||||
import { useAppDispatch } from 'src/utils/hooks';
|
||||
|
||||
@@ -4,7 +4,7 @@ import Categories from './Categories';
|
||||
|
||||
|
||||
export default {
|
||||
title: 'Explore Page/Categories',
|
||||
title: 'Projects/Explore Page/Categories',
|
||||
component: Categories,
|
||||
|
||||
} as ComponentMeta<typeof Categories>;
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import { ModifyArgs } from 'src/utils/storybook/utils';
|
||||
import ExplorePage from './ExplorePage';
|
||||
|
||||
export default {
|
||||
title: 'Projects/Explore Page',
|
||||
component: ExplorePage,
|
||||
argTypes: {
|
||||
backgroundColor: { control: 'color' },
|
||||
},
|
||||
parameters: {
|
||||
modifyArgs: {
|
||||
router: {
|
||||
routePath: "/:id",
|
||||
currentPath: "/1"
|
||||
}
|
||||
} as ModifyArgs
|
||||
}
|
||||
} as ComponentMeta<typeof ExplorePage>;
|
||||
|
||||
|
||||
const Template: ComponentStory<typeof ExplorePage> = (args) => <ExplorePage {...args as any} ></ExplorePage>
|
||||
|
||||
export const Page = Template.bind({});
|
||||
Page.args = {
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import Categories from "./Categories/Categories";
|
||||
import Header from "./Header/Header";
|
||||
import ProjectsSection from "./ProjectsSection/ProjectsSection";
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import Header from './Header';
|
||||
|
||||
|
||||
export default {
|
||||
title: 'Explore Page/Header',
|
||||
title: 'Projects/Explore Page/Header',
|
||||
component: Header,
|
||||
|
||||
} as ComponentMeta<typeof Header>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
import ProjectCardMiniSkeleton from "src/Components/Cards/ProjectCardMini/ProjectCardMini.Skeleton";
|
||||
import Skeleton from "react-loading-skeleton";
|
||||
import ProjectCardMiniSkeleton from "src/features/Projects/Components/ProjectCardMini/ProjectCardMini.Skeleton";
|
||||
|
||||
export default function ProjectsRowSkeleton() {
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { MOCK_DATA } from 'src/mocks/data';
|
||||
|
||||
|
||||
export default {
|
||||
title: 'Explore Page/ProjectsRow',
|
||||
title: 'Projects/Explore Page/ProjectsRow',
|
||||
component: ProjectsRow,
|
||||
|
||||
} as ComponentMeta<typeof ProjectsRow>;
|
||||
|
||||
@@ -4,12 +4,12 @@ import Carousel from 'react-multi-carousel';
|
||||
import { MdDoubleArrow, } from 'react-icons/md';
|
||||
import { useAppDispatch } from "src/utils/hooks";
|
||||
import { openModal } from "src/redux/features/modals.slice";
|
||||
import ProjectCardMini from "src/Components/Cards/ProjectCardMini/ProjectCardMini";
|
||||
import { useResizeListener } from 'src/utils/hooks'
|
||||
import { IoIosArrowBack, IoIosArrowForward } from "react-icons/io";
|
||||
import './style.css';
|
||||
import { Link } from "react-router-dom";
|
||||
import { openProject } from "src/redux/features/project.slice";
|
||||
import ProjectCardMini from "src/features/Projects/Components/ProjectCardMini/ProjectCardMini";
|
||||
|
||||
interface Props {
|
||||
title: string | ReactNode,
|
||||
|
||||
@@ -4,7 +4,7 @@ import ProjectsSection from './ProjectsSection';
|
||||
|
||||
|
||||
export default {
|
||||
title: 'Explore Page/Projects Section',
|
||||
title: 'Projects/Explore Page/Projects Section',
|
||||
component: ProjectsSection,
|
||||
|
||||
} as ComponentMeta<typeof ProjectsSection>;
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||
import HottestPage from './HottestPage';
|
||||
|
||||
export default {
|
||||
title: 'Projects/Hottest Page',
|
||||
component: HottestPage,
|
||||
argTypes: {
|
||||
backgroundColor: { control: 'color' },
|
||||
},
|
||||
} as ComponentMeta<typeof HottestPage>;
|
||||
|
||||
|
||||
const Template: ComponentStory<typeof HottestPage> = (args) => <HottestPage {...args as any} ></HottestPage>
|
||||
|
||||
export const Page = Template.bind({});
|
||||
Page.args = {
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import Claim_CopySignatureCard from './Claim_CopySignatureCard';
|
||||
import { ModalsDecorator } from 'src/utils/storybook/decorators';
|
||||
|
||||
export default {
|
||||
title: 'Project/Claim/Copy Signature Card',
|
||||
title: 'Projects/Claim/Copy Signature Card',
|
||||
component: Claim_CopySignatureCard,
|
||||
|
||||
decorators: [ModalsDecorator]
|
||||
|
||||
@@ -5,7 +5,7 @@ import Claim_FundWithdrawCard from './Claim_FundWithdrawCard';
|
||||
import { ModalsDecorator } from 'src/utils/storybook/decorators';
|
||||
|
||||
export default {
|
||||
title: 'Project/Claim/Fund Withdraw Card',
|
||||
title: 'Projects/Claim/Fund Withdraw Card',
|
||||
component: Claim_FundWithdrawCard,
|
||||
|
||||
decorators: [ModalsDecorator]
|
||||
|
||||
@@ -5,7 +5,7 @@ import Claim_GenerateSignatureCard from './Claim_GenerateSignatureCard';
|
||||
import { ModalsDecorator } from 'src/utils/storybook/decorators';
|
||||
|
||||
export default {
|
||||
title: 'Project/Claim/Generate Signature Card',
|
||||
title: 'Projects/Claim/Generate Signature Card',
|
||||
component: Claim_GenerateSignatureCard,
|
||||
|
||||
decorators: [ModalsDecorator]
|
||||
|
||||
@@ -5,7 +5,7 @@ import Claim_SubmittedCard from './Claim_SubmittedCard';
|
||||
import { ModalsDecorator } from 'src/utils/storybook/decorators';
|
||||
|
||||
export default {
|
||||
title: 'Project/Claim/Submitted Card',
|
||||
title: 'Projects/Claim/Submitted Card',
|
||||
component: Claim_SubmittedCard,
|
||||
|
||||
decorators: [ModalsDecorator]
|
||||
|
||||
@@ -6,7 +6,7 @@ import ProjectDetailsCardSkeleton from './ProjectDetailsCard.Skeleton';
|
||||
import { ModalsDecorator } from 'src/utils/storybook/decorators';
|
||||
|
||||
export default {
|
||||
title: 'Project/Project Details Card',
|
||||
title: 'Projects/Project Page/Project Details Modal',
|
||||
component: ProjectDetailsCard,
|
||||
|
||||
decorators: [ModalsDecorator],
|
||||
|
||||
@@ -4,7 +4,7 @@ import VoteButton from './VoteButton';
|
||||
import { centerDecorator } from 'src/utils/storybook/decorators';
|
||||
|
||||
export default {
|
||||
title: 'Project/Tip Button',
|
||||
title: 'Projects/Project Page/Tip Button',
|
||||
component: VoteButton,
|
||||
decorators: [
|
||||
centerDecorator
|
||||
|
||||
@@ -5,7 +5,7 @@ import VoteCard from './VoteCard';
|
||||
import { ModalsDecorator } from 'src/utils/storybook/decorators';
|
||||
|
||||
export default {
|
||||
title: 'Project/Vote Card',
|
||||
title: 'Projects/Project Page/Vote Card',
|
||||
component: VoteCard,
|
||||
|
||||
decorators: [ModalsDecorator]
|
||||
|
||||
Reference in New Issue
Block a user