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 0206257 commit 6a23734
Show file tree
Hide file tree
Showing 22 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-rings-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'x-boilerplate': major
---

Change names in component structure
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
2 changes: 1 addition & 1 deletion app/(marketing)/resend/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ 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/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { authOptions } from '@/libs/auth';
import SignInProviderButton from './SignInProviderButton';
import SignOutButton from './SignOutButton';

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

async function NextAuthPage() {
Expand Down
4 changes: 2 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import * as React from 'react';

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

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

async function HomePage() {
return (
Expand Down
4 changes: 2 additions & 2 deletions 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 All @@ -29,6 +29,6 @@ function HelloNamePage({ params }: HelloNamePageProps) {
onGoBack={handleGoBack}
/>
);
};
}

export default HelloNamePage;
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
2 changes: 1 addition & 1 deletion app/x-state/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { selectorGetDog, selectorGetDogLoading } from '@/machines/dog/dog.select

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.
File renamed without changes.
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.

0 comments on commit 6a23734

Please sign in to comment.