mirror of
https://github.com/owncast/owncast.git
synced 2025-11-03 04:27:18 +08:00
Cleanup unused Javascript (#3027)
* chore(js): be stricter about dead code warnings * chore(js): remove dead code and unused exports * rebase * chore: remove unused files * chore(deps): remove unused prop-types dep * chore(js): remove unused function * chore(deps): remove + check unused deps * chore(js): remove unused exports. Closes #3036
This commit is contained in:
@ -18,14 +18,13 @@ const WarningOutlined = dynamic(() => import('@ant-design/icons/WarningOutlined'
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
export const STATUS_RESET_TIMEOUT = 3000;
|
||||
|
||||
export const STATUS_ERROR = 'error';
|
||||
export const STATUS_INVALID = 'invalid';
|
||||
export const STATUS_PROCESSING = 'proessing';
|
||||
export const STATUS_SUCCESS = 'success';
|
||||
export const STATUS_WARNING = 'warning';
|
||||
|
||||
const STATUS_INVALID = 'invalid';
|
||||
|
||||
export type InputStatusTypes = 'error' | 'invalid' | 'proessing' | 'success' | 'warning';
|
||||
|
||||
export interface StatusState {
|
||||
@ -37,7 +36,7 @@ interface InputStates {
|
||||
[key: string]: StatusState;
|
||||
}
|
||||
|
||||
export const INPUT_STATES: InputStates = {
|
||||
const INPUT_STATES: InputStates = {
|
||||
[STATUS_SUCCESS]: {
|
||||
type: STATUS_SUCCESS,
|
||||
icon: <CheckCircleFilled style={{ color: 'green' }} />,
|
||||
|
||||
Reference in New Issue
Block a user