docker: initial container creation
This commit is contained in:
7
hooks/types.d.ts
vendored
Normal file
7
hooks/types.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export type InputBinder = {
|
||||
name: string;
|
||||
value: string | number;
|
||||
onChange: (
|
||||
e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>,
|
||||
) => void;
|
||||
};
|
@@ -1,5 +1,5 @@
|
||||
import React, { ChangeEvent, useCallback, useState } from "react";
|
||||
import { InputBinder } from "../types/inputBinder";
|
||||
import { InputBinder } from "./types";
|
||||
|
||||
type ObjectStateHookConfig = {
|
||||
disallowSpaces?: boolean;
|
||||
|
@@ -1,10 +0,0 @@
|
||||
import { useEffect, useRef } from 'react'
|
||||
import { QueryParams } from '../utils/queryParams'
|
||||
|
||||
export const useQueryParams = (options?: {clean: boolean}) => {
|
||||
const queryParams = useRef(new QueryParams(options))
|
||||
|
||||
useEffect(() => {
|
||||
console.log(queryParams.current.get('test'))
|
||||
}, [queryParams.current])
|
||||
}
|
Reference in New Issue
Block a user