Skip to content

Commit

Permalink
lint and format (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangohjw authored Jan 20, 2025
1 parent 9343fdd commit c127288
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react"
import { withChromaticModes } from "@isomer/storybook-config"

import type { CollectionCardProps } from "~/interfaces"
import { Tag } from "~/interfaces/internal/CollectionCard"
import type { Tag } from "~/interfaces/internal/CollectionCard"
import { CollectionCard } from "./CollectionCard"

const meta: Meta<typeof CollectionCard> = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PropsWithChildren } from "react"
import type { PropsWithChildren } from "react"

export const Tag = (
props: PropsWithChildren<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function getTextContentOfProse(content: ProseContent): string {
function recursiveSearch(
content: ProseContent | OrderedListProps["content"],
) {
content?.map((contentBlock) => {
content.map((contentBlock) => {
switch (contentBlock.type) {
case "heading":
values.push(
Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/types/page.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import type { Static } from "@sinclair/typebox"
import { Type } from "@sinclair/typebox"
import { Collection } from "react-aria-components"

import type { CollectionVariant } from "./variants"
import {
ArticlePageHeaderSchema,
ContentPageHeaderSchema,
SearchableTableSchema,
} from "~/interfaces"
import { AltTextSchema, generateImageSrcSchema } from "~/interfaces/complex"
import { REF_HREF_PATTERN } from "~/utils/validation"
import { CollectionVariant, CollectionVariantSchema } from "./variants"

const categorySchemaObject = Type.Object({
category: Type.String({
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/types/variants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Static, Type } from "@sinclair/typebox"
import type { Static } from "@sinclair/typebox"
import { Type } from "@sinclair/typebox"

export const CollectionVariantSchema = Type.Union([
Type.Literal("blog"),
Expand Down

0 comments on commit c127288

Please sign in to comment.