Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gurdeepsingh-hub committed Jun 11, 2024
1 parent 3f18846 commit 17033f7
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/common/Blocks/CTACenteredBlock/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CTACenteredBlock as CTACenteredBlockType } from '@/payload-types';
import { LinkButton } from '../../components/LinkButtons';
import { LinkButton } from '../../Components/LinkButtons';

export const CTACenteredBlock = ({ data }: { data: CTACenteredBlockType | null | undefined }) => {
if (!data) return null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LinkButton } from '../../components/LinkButtons';
import { LinkButton } from '../../Components/LinkButtons';
import type { CTAWithSplitContentAndButtonBlock as CTAWithSplitContentAndButtonBlockType } from '@/payload-types';

export const CTAWithSplitContentAndButtonBlock = ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { CTAWithSplitContentAndImageBlock as CTAWithSplitContentAndImageBlockType } from '@/payload-types';
import Image from 'next/image';
import { LinkButton } from '../../components/LinkButtons';
import { LinkButton } from '../../Components/LinkButtons';

export const CTAWithSplitContentAndImageBlock = ({
data,
Expand Down
2 changes: 1 addition & 1 deletion src/common/Blocks/ContentBlock/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LinkButton } from '../../components/LinkButtons';
import { LinkButton } from '../../Components/LinkButtons';
import { ContentBlock as ContentBlockType } from '@/payload-types';

export const ContentBlock = ({ data }: { data: ContentBlockType | null | undefined }) => {
Expand Down
3 changes: 1 addition & 2 deletions src/common/Blocks/FeatureWithThreeColumnBlock/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Link from 'next/link';
import { CustomIcon } from '../../Components/CustomIcon';
import type { FeatureWithThreeColumnBlock as FeatureWithThreeColumnBlockType } from '@/payload-types';
import { LinkButton } from '../../components/LinkButtons';
import { LinkButton } from '../../Components/LinkButtons';

export const FeatureWithThreeColumnBlock = ({
data,
Expand Down
2 changes: 1 addition & 1 deletion src/common/Blocks/HeroWithBackgroundBlock/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { HeroWithBackgroundBlock as HeroWithBackgroundBlockType } from '@/payload-types';
import { MediaImage } from '../../Mediaimage';
import { LinkButton } from '../../components/LinkButtons';
import { LinkButton } from '../../Components/LinkButtons';

export const HeroWithBackgroundBlock = ({
data,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { HeroWithSplitContentAndImageBlock as HeroWithSplitContentAndImageBlockType } from '@/payload-types';
import { MediaImage } from '../../Mediaimage';
import { LinkButton } from '../../components/LinkButtons';
import { LinkButton } from '../../Components/LinkButtons';

export const HeroWithSplitContentAndImageBlock = ({
data,
Expand Down
4 changes: 2 additions & 2 deletions src/common/Components/LinkButtons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const LinkButton = ({ link, className }: { link: Link; className?: string
link.appearance === 'primary' && 'bg-indigo-600'
} px-12 py-3 text-sm font-medium ${
link.appearance === 'primary' ? 'text-white' : 'text-indigo-600'
} transition hover:bg-indigo-700 focus:outline-none focus:ring focus:ring-yellow-400`}
} transition hover:bg-indigo-700 hover:text-white focus:outline-none focus:ring focus:ring-yellow-400`}
target={link.newTab ? '_blank' : '_self'}
>
{link.label}
Expand Down Expand Up @@ -56,7 +56,7 @@ export const LinkButton = ({ link, className }: { link: Link; className?: string
link.appearance === 'primary' && 'bg-indigo-600'
} px-12 py-3 text-sm font-medium ${
link.appearance === 'primary' ? 'text-white' : 'text-indigo-600'
} transition hover:bg-indigo-700 focus:outline-none focus:ring focus:ring-yellow-400`}
} transition hover:bg-indigo-700 hover:text-white focus:outline-none focus:ring focus:ring-yellow-400`}
target={link.newTab ? '_blank' : '_self'}
href={doc.slug}
>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export default {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/Components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/common/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
Expand Down

0 comments on commit 17033f7

Please sign in to comment.