Skip to content

Commit

Permalink
refactor: add stories and change names for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
PupoSDC committed Jan 20, 2024
1 parent ef0c6a4 commit 8186eda
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 143 deletions.
14 changes: 0 additions & 14 deletions libs/react/components/src/cta-search/cta-search.stories.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions libs/react/components/src/cta-search/cta-search.test.tsx

This file was deleted.

82 changes: 0 additions & 82 deletions libs/react/components/src/cta-search/cta-search.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions libs/react/components/src/cta-search/index.ts

This file was deleted.

16 changes: 8 additions & 8 deletions libs/react/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@ import "@chair-flight/base/types";
export * from "./app-buttons";
export * from "./app-head";
export * from "./app-logo";
export * from "./background-faded-image";
export * from "./background-sliding-images";
export * from "./blog-post-chip";
export * from "./container-wrapper";
export * from "./background-sliding-images";
export * from "./background-faded-image";
export * from "./count-up";
export * from "./cta-search";
export * from "./flashcard";
export * from "./flashcard-tinder";
export * from "./hook-form";
export * from "./hooks/use-disclose";
export * from "./hooks/use-media-query";
export * from "./hooks/use-window-resize";
export * from "./hooks/use-disclose";
export * from "./module-selection-button";
export * from "./image-viewer/image-viewer";
export * from "./input-slider";
export * from "./markdown-client";
export * from "./module-selection-button";
export * from "./nested-checkbox-select";
export * from "./question-list";
export * from "./question-multiple-choice";
export * from "./question-navigation";
export * from "./question-variant-preview";
export * from "./question-list";
export * from "./search-filters";
export * from "./search-query";

Check failure on line 28 in libs/react/components/src/index.ts

View workflow job for this annotation

GitHub Actions / Code-Check

Cannot find module './search-query' or its corresponding type declarations.

Check failure on line 28 in libs/react/components/src/index.ts

View workflow job for this annotation

GitHub Actions / Code-Check

Cannot find module './search-query' or its corresponding type declarations.

Check failure on line 28 in libs/react/components/src/index.ts

View workflow job for this annotation

GitHub Actions / Code-Check

Cannot find module './search-query' or its corresponding type declarations.
export * from "./sidebar";
export * from "./test-preview";
export * from "./question-navigation";
export * from "./test-question-result";
export * from "./theme";
export * from "./toaster";
export * from "./typical";
export * from "./ups";
export * from "./search-filters";
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type SearchFiltersProps = {
* Opinionated component to display search filters. Includes a `NoSsr`boundary
* to make it safe to render when filter information is persisted client side.
*
* provided `fallback`should closely mirror `filters`.
* Provided `fallback`should closely mirror `filters`.
*/
export const SearchFilters: FC<SearchFiltersProps> = ({
filters: filters,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
} from "@mui/joy";
import { CourseNames } from "@chair-flight/core/app";
import {
CtaSearch,
SearchQuery,

Check failure on line 24 in libs/react/containers/src/learning-objectives/learning-objectives-search/learning-objectives-search.tsx

View workflow job for this annotation

GitHub Actions / Code-Check

Module '"@chair-flight/react/components"' has no exported member 'SearchQuery'.

Check failure on line 24 in libs/react/containers/src/learning-objectives/learning-objectives-search/learning-objectives-search.tsx

View workflow job for this annotation

GitHub Actions / Code-Check

Module '"@chair-flight/react/components"' has no exported member 'SearchQuery'.
HookFormSelect,
MarkdownClientCompressed,
SearchFilters,
Expand Down Expand Up @@ -105,7 +105,7 @@ export const LearningObjectivesSearch = container<Props, Params, Data>(
[`& .${selectClasses.root}`]: { width: "13em" },
}}
>
<CtaSearch
<SearchQuery
size="sm"
value={search}
loading={isLoading}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from "react";
import { Button, Divider, Grid, Typography } from "@mui/joy";
import { CtaSearch } from "@chair-flight/react/components";
import { SearchQuery } from "@chair-flight/react/components";

Check failure on line 3 in libs/react/containers/src/overviews/overview-module/overview-module.tsx

View workflow job for this annotation

GitHub Actions / Code-Check

Module '"@chair-flight/react/components"' has no exported member 'SearchQuery'.
import { trpc } from "@chair-flight/trpc/client";
import { LayoutModule } from "../../layouts/layout-module";
import { container, getRequiredParam } from "../../wraper";
Expand Down Expand Up @@ -45,7 +45,7 @@ export const OverviewModule = container<Props, Params, Data>(
<Grid xs={12} md={6}>
<Typography level="h2">Search Questions</Typography>
<Divider sx={{ mb: 2 }} />
<CtaSearch
<SearchQuery
disableLabel
value={searchQuestion}
onChange={(v) => setQuestionSearch(v)}

Check failure on line 51 in libs/react/containers/src/overviews/overview-module/overview-module.tsx

View workflow job for this annotation

GitHub Actions / Code-Check

Parameter 'v' implicitly has an 'any' type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from "react";
import { FormProvider } from "react-hook-form";
import { Select, Stack, Option, selectClasses } from "@mui/joy";
import {
CtaSearch,
SearchQuery,

Check failure on line 5 in libs/react/containers/src/questions/question-search/question-search.tsx

View workflow job for this annotation

GitHub Actions / Code-Check

Module '"@chair-flight/react/components"' has no exported member 'SearchQuery'.
HookFormSelect,
QuestionList,
SearchFilters,
Expand Down Expand Up @@ -65,7 +65,7 @@ export const QuestionSearch = container<Props, Params, Data>(
},
}}
>
<CtaSearch
<SearchQuery
size="sm"
value={search}
loading={isLoading}
Expand Down

0 comments on commit 8186eda

Please sign in to comment.