mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 02:46:14 -06:00
[feature] Create/update/remove domain permission subscriptions
This commit is contained in:
parent
8504043024
commit
a3743f8234
44 changed files with 4389 additions and 171 deletions
|
|
@ -41,6 +41,7 @@ import type {
|
|||
ChecklistInputHook,
|
||||
FieldArrayInputHook,
|
||||
ArrayInputHook,
|
||||
NumberFormInputHook,
|
||||
} from "./types";
|
||||
|
||||
function capitalizeFirst(str: string) {
|
||||
|
|
@ -102,11 +103,11 @@ function value<T>(name: string, initialValue: T) {
|
|||
name,
|
||||
Name: "",
|
||||
value: initialValue,
|
||||
hasChanged: () => true, // always included
|
||||
};
|
||||
}
|
||||
|
||||
export const useTextInput = inputHook(text) as (_name: string, _opts?: HookOpts<string>) => TextFormInputHook;
|
||||
export const useNumberInput = inputHook(text) as (_name: string, _opts?: HookOpts<number>) => NumberFormInputHook;
|
||||
export const useFileInput = inputHook(file) as (_name: string, _opts?: HookOpts<File>) => FileFormInputHook;
|
||||
export const useBoolInput = inputHook(bool) as (_name: string, _opts?: HookOpts<boolean>) => BoolFormInputHook;
|
||||
export const useRadioInput = inputHook(radio) as (_name: string, _opts?: HookOpts<string>) => RadioFormInputHook;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue