docker: initial container creation

This commit is contained in:
2024-03-13 04:37:40 -06:00
parent d0cb74bea8
commit 4615f11cfa
6 changed files with 40 additions and 16 deletions

7
hooks/types.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
export type InputBinder = {
name: string;
value: string | number;
onChange: (
e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>,
) => void;
};

View File

@@ -1,5 +1,5 @@
import React, { ChangeEvent, useCallback, useState } from "react";
import { InputBinder } from "../types/inputBinder";
import { InputBinder } from "./types";
type ObjectStateHookConfig = {
disallowSpaces?: boolean;

View File

@@ -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])
}