move components folder and fix build errors (#18)
* move components folder and fix build errors Fixes https://github.com/owncast/owncast/issues/689 * Prettified Code! Co-authored-by: nebunez <nebunez@users.noreply.github.com>
This commit is contained in:
@@ -15,13 +15,16 @@ export const STATUS_WARNING = 'warning';
|
||||
|
||||
export type InputStatusTypes = 'error' | 'invalid' | 'proessing' | 'success' | 'warning';
|
||||
|
||||
export type StatusState = {
|
||||
export interface StatusState {
|
||||
type: InputStatusTypes;
|
||||
icon: any; // Element type of sorts?
|
||||
message: string;
|
||||
};
|
||||
}
|
||||
interface InputStates {
|
||||
[key: string]: StatusState;
|
||||
}
|
||||
|
||||
export const INPUT_STATES = {
|
||||
export const INPUT_STATES: InputStates = {
|
||||
[STATUS_SUCCESS]: {
|
||||
type: STATUS_SUCCESS,
|
||||
icon: <CheckCircleFilled style={{ color: 'green' }} />,
|
||||
|
||||
Reference in New Issue
Block a user