Added version to fetch props. Renamed interfaces to a declaration file
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import { type Component, createSignal } from "solid-js";
|
||||
import type { ButtonProps, TitleProps } from "../types/interfaces";
|
||||
import type { ButtonProps, TitleProps } from "../types/types";
|
||||
|
||||
interface SwitchProps extends TitleProps {
|
||||
defaultValue?: boolean,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import { type Component } from "solid-js";
|
||||
import type { CardProps } from "../types/interfaces";
|
||||
import type { CardProps } from "../types/types";
|
||||
import { Link } from "./link";
|
||||
|
||||
const Card: Component<CardProps> = ({ children, className, title, to, newTab = false }) => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import { Dialog, DialogDescription, DialogPanel, DialogTitle } from "solid-headless";
|
||||
import type { TitleProps } from "../types/interfaces";
|
||||
import type { TitleProps } from "../types/types";
|
||||
import { createEffect, createSignal, JSX } from "solid-js";
|
||||
import { Button } from "./button";
|
||||
import { Portal } from "solid-js/web";
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import { type Component } from "solid-js";
|
||||
import type { SimpleProps } from "../types/interfaces";
|
||||
import type { SimpleProps } from "../types/types";
|
||||
import { Link } from "./link";
|
||||
|
||||
const Footer: Component<SimpleProps> = ({ className }) => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import { type Component, Show } from "solid-js";
|
||||
import type { TitleProps } from "../types/interfaces";
|
||||
import type { TitleProps } from "../types/types";
|
||||
import { Icon } from "solid-heroicons";
|
||||
import { chevronLeft } from "solid-heroicons/solid";
|
||||
import { Link } from "./link";
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import { type Component, createSignal, JSX, Setter } from "solid-js";
|
||||
import type { InputProps } from "../types/interfaces";
|
||||
import type { InputProps } from "../types/types";
|
||||
import Row from "./row";
|
||||
|
||||
function setupEventListener(id: string, setIsHover: Setter<boolean>): () => void {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import { type Component } from "solid-js";
|
||||
import type { TitleProps } from "../types/interfaces";
|
||||
import type { TitleProps } from "../types/types";
|
||||
import Header from "./header";
|
||||
import Footer from "./footer";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import { type Component } from "solid-js";
|
||||
import type { LinkProps } from "../types/interfaces";
|
||||
import type { LinkProps } from "../types/types";
|
||||
|
||||
export const Link: Component<LinkProps> = (
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* @refresh reload */
|
||||
import type { TitleProps } from "../types/interfaces";
|
||||
import type { TitleProps } from "../types/types";
|
||||
import { type Component, createEffect, createSignal, JSX, Show } from "solid-js";
|
||||
import { Button } from "./button";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Disclosure, DisclosureButton, DisclosurePanel, Transition } from "solid-headless";
|
||||
import { Icon } from "solid-heroicons";
|
||||
import type { ChildProps, TitleProps } from "../types/interfaces";
|
||||
import type { ChildProps, TitleProps } from "../types/types";
|
||||
import { Component, JSX } from "solid-js";
|
||||
import { chevronUp } from "solid-heroicons/solid";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import { type Component } from "solid-js";
|
||||
import type { ChildProps } from "../types/interfaces";
|
||||
import type { ChildProps } from "../types/types";
|
||||
|
||||
const Row: Component<ChildProps> = ({ children, className }) => {
|
||||
return <div class={ `flex-row-center ${ className }` }>{ children }</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @refresh reload */
|
||||
import type { SimpleProps } from "../types/interfaces";
|
||||
import type { Table } from "../types/interfaces";
|
||||
import type { SimpleProps } from "../types/types";
|
||||
import type { Table } from "../types/types";
|
||||
import { For } from "solid-js/web";
|
||||
import { type Component } from "solid-js";
|
||||
|
||||
|
Reference in New Issue
Block a user