Skip to content

Commit

Permalink
refactor(core): Change names in component structure
Browse files Browse the repository at this point in the history
  • Loading branch information
wootsbot committed Jul 28, 2023
1 parent 1c5e9ec commit 497b429
Show file tree
Hide file tree
Showing 47 changed files with 26 additions and 26 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/(i18next)/i18next/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next';
import { AVAILABLE_LANGUAGES } from '@/libs/i18n/constants';
import i18n from '@/libs/i18n/init';

import Header from '@/components/Header';
import Header from '@/components/header';

function I18nextPage() {
const router = useRouter();
Expand Down
6 changes: 3 additions & 3 deletions app/(marketing)/resend/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import * as React from 'react';
import { useForm } from 'react-hook-form';
import toast from 'react-hot-toast';

import Button from '@design-system/Button';
import InputField from '@design-system/InputField';
import Button from '@design-system/button';
import InputField from '@design-system/input-field';
import { zodResolver } from '@hookform/resolvers/zod';
import * as z from 'zod';

import { sendEmailSchema } from '@/utils/validations/send-email';

import Header from '@/components/Header';
import Header from '@/components/header';
import { useResendEmail } from '@/hooks/services/resend/email/use-resend-email.hook';

type FormValues = z.infer<typeof sendEmailSchema>;
Expand Down
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as React from 'react';

import Providers from './Providers';

import Container from '@/components/Container';
import SocialContainer from '@/components/SocialContainer';
import Container from '@/components/container';
import SocialContainer from '@/components/social-container';

type MainLayoutProps = {
children?: React.ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion app/next-auth/SignInProviderButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { ClientSafeProvider } from 'next-auth/react';
import { signIn } from 'next-auth/react';

import Button from '@design-system/Button';
import Button from '@design-system/button';

export type SignInProviderProps = {
provider: ClientSafeProvider;
Expand Down
2 changes: 1 addition & 1 deletion app/next-auth/SignOutButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { signOut } from 'next-auth/react';

import Button from '@design-system/Button';
import Button from '@design-system/button';

function SignOutButton() {
return <Button onClick={() => signOut()}>SignOut</Button>;
Expand Down
4 changes: 2 additions & 2 deletions app/next-auth/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { authOptions } from '@/libs/auth';
import SignInProviderButton from './SignInProviderButton';
import SignOutButton from './SignOutButton';

import Header from '@/components/Header';
import SessionStatus from '@/components/SessionStatus';
import Header from '@/components/header';
import SessionStatus from '@/components/session-status';

async function NextAuthPage() {
const session = await getServerSession(authOptions);
Expand Down
8 changes: 4 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable react/no-unescaped-entities */
import * as React from 'react';

import Typography from '@design-system/Typography';
import Typography from '@design-system/typography';

import FeatureCard from '@/components/FeatureCard';
import SessionStatus from '@/components/SessionStatus';
import XBoilerplate from '@/components/XBoilerplate';
import FeatureCard from '@/components/feature-card';
import SessionStatus from '@/components/session-status';
import XBoilerplate from '@/components/x-boilerplate';

async function HomePage() {
return (
Expand Down
2 changes: 1 addition & 1 deletion app/react-hook-form/hello/[name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useRouter } from 'next/navigation';
import * as React from 'react';

import Header from '@/components/Header';
import Header from '@/components/header';

type HelloNamePageProps = {
params: {
Expand Down
4 changes: 2 additions & 2 deletions app/react-hook-form/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import * as React from 'react';

import { NextPageLayout } from '@/utils/types';

import Header from '@/components/Header';
import HelloForm from '@/components/HelloForm';
import Header from '@/components/header';
import HelloForm from '@/components/hello-form';

const XstatePage: NextPageLayout = () => {
const router = useRouter();
Expand Down
4 changes: 2 additions & 2 deletions app/x-state/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import Image from 'next/image';
import { useRouter } from 'next/navigation';
import * as React from 'react';

import Button from '@design-system/Button';
import Button from '@design-system/button';

import { useDogStateService, useSelectedDogState } from '@/machines/dog/dog.machine';
import { selectorGetDog, selectorGetDogLoading } from '@/machines/dog/dog.selectors';

import { NextPageLayout } from '@/utils/types';

import Header from '@/components/Header';
import Header from '@/components/header';

const XstatePage: NextPageLayout = () => {
const router = useRouter();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useRouter } from 'next/navigation';
import * as React from 'react';

import Typography from '@design-system/Typography';
import Typography from '@design-system/typography';

import styles from './FeatureCard.module.css';

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions components/Header/Header.tsx → components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Image from 'next/image';
import { useRouter } from 'next/navigation';
import * as React from 'react';

import ButtonGoBack from '@design-system/ButtonGoBack';
import Typography from '@design-system/Typography';
import ButtonGoBack from '@design-system/button-go-back';
import Typography from '@design-system/typography';

import styles from './Header.module.css';
import { HeaderProps } from './Header.types';
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { useForm } from 'react-hook-form';

import Button from '@design-system/Button';
import InputField from '@design-system/InputField';
import Button from '@design-system/button';
import InputField from '@design-system/input-field';
import { zodResolver } from '@hookform/resolvers/zod';
import * as z from 'zod';

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,6 +1,6 @@
import { getServerSession } from 'next-auth/next';

import Typography from '@design-system/Typography';
import Typography from '@design-system/typography';

import { authOptions } from '@/libs/auth';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SiGithub } from '@icons-pack/react-simple-icons';

import styles from './SocialContainer.module.css';

import { XBoilerplateSimple } from '@/components/XBoilerplate';
import { XBoilerplateSimple } from '@/components/x-boilerplate';

function SocialContainer() {
return (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

1 comment on commit 497b429

@vercel
Copy link

@vercel vercel bot commented on 497b429 Jul 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.