Skip to content

Commit

Permalink
refactor: features/form配下のcomponentを移動
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed May 22, 2024
1 parent e941d7d commit d53ebc8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
} from '@mui/material';
import { useState } from 'react';
import { useForm } from 'react-hook-form';
import type { FormQuestion } from '../../../_schemas/formSchema';
import type { FormQuestion } from '../../../../../_schemas/formSchema';
import type { NonEmptyArray } from '@/generic/Types';

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(authed)/(standard)/forms/[formId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { redirect } from 'next/navigation';
import useSWR from 'swr';
import AnswerForm from '@/features/form/components/AnswerForm';
import AnswerForm from './AnswerForm';
import type { GetQuestionsResponse } from '@/app/api/_schemas/ResponseSchemas';

const Home = ({ params }: { params: { formId: number } }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Link,
} from '@mui/material';
import { formatString } from '@/generic/DateFormatter';
import type { MinimumForm } from '../../../_schemas/formSchema';
import type { MinimumForm } from '../../../../../_schemas/formSchema';

const formatResponsePeriod = (startAt: string | null, endAt: string | null) => {
if (startAt != null && endAt != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(authed)/(standard)/forms/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { redirect } from 'next/navigation';
import useSWR from 'swr';
import FormList from '@/features/form/components/FormList';
import FormList from './_components/FormList';
import type { MinimumForm } from '@/_schemas/formSchema';

const Home = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CardContent from '@mui/material/CardContent';
import Grid from '@mui/material/Grid';
import Typography from '@mui/material/Typography';
import * as React from 'react';
import { formatString } from '../../../generic/DateFormatter';
import { formatString } from '../../../../../generic/DateFormatter';
import type { MinimumForm } from '@/_schemas/formSchema';

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(authed)/admin/forms/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '@mui/material';
import { redirect } from 'next/navigation';
import useSWR from 'swr';
import { Forms } from '@/features/form/components/DashboardFormList';
import { Forms } from './_components/DashboardFormList';
import type { MinimumForm } from '@/_schemas/formSchema';

const Home = () => {
Expand Down

0 comments on commit d53ebc8

Please sign in to comment.