1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed typos

This commit is contained in:
muerwre 2019-08-02 18:43:24 +07:00
parent 6066c91060
commit 840af25df4
17 changed files with 438 additions and 125 deletions

View file

@ -1,22 +1,22 @@
import { ValueOf } from "~/redux/types";
import { HorizontalExample } from "~/containers/examples/HorizontalExample";
import { ExampleDialog } from "~/containers/dialogs/ExampleDialog";
import { LoginDialog } from "~/containers/dialogs/LoginDialog";
import { ValueOf } from '~/redux/types';
import { HorizontalExample } from '~/containers/examples/HorizontalExample';
import { ExampleDialog } from '~/containers/dialogs/ExampleDialog';
import { LoginDialog } from '~/containers/dialogs/LoginDialog';
export const MODAL_ACTIONS = {
SET_SHOWN: "MODAL.SET_SHOWN",
SET_DIALOG: "SET_DIALOG",
SHOW_DIALOG: "SHOW_DIALOG"
SET_SHOWN: 'MODAL.SET_SHOWN',
SET_DIALOG: 'SET_DIALOG',
SHOW_DIALOG: 'SHOW_DIALOG',
};
export const DIALOGS = {
TEST: "TEST",
LOGIN: "LOGIN"
TEST: 'TEST',
LOGIN: 'LOGIN',
};
export const DIALOG_CONTENT = {
[DIALOGS.TEST]: ExampleDialog,
[DIALOGS.LOGIN]: LoginDialog
[DIALOGS.LOGIN]: LoginDialog,
};
export interface IDialogProps {

View file

@ -1,7 +1,7 @@
import { MODAL_HANDLERS } from "~/redux/modal/handlers";
import { createReducer } from "~/utils/reducer";
import { DIALOGS } from "~/redux/modal/constants";
import { ValueOf } from "~/redux/types";
import { MODAL_HANDLERS } from '~/redux/modal/handlers';
import { createReducer } from '~/utils/reducer';
import { DIALOGS } from '~/redux/modal/constants';
import { ValueOf } from '~/redux/types';
export interface IModalState {
is_shown: boolean;
@ -10,7 +10,7 @@ export interface IModalState {
const INITIAL_STATE: IModalState = {
is_shown: true,
dialog: DIALOGS.LOGIN
dialog: DIALOGS.LOGIN,
};
export default createReducer(INITIAL_STATE, MODAL_HANDLERS);

View file

@ -1,10 +1,10 @@
import { DetailedHTMLProps, InputHTMLAttributes } from "react";
import { DIALOGS } from "~/redux/modal/constants";
import { DetailedHTMLProps, InputHTMLAttributes } from 'react';
import { DIALOGS } from '~/redux/modal/constants';
export type ITag = {
export interface ITag {
title: string;
feature?: "red" | "blue" | "green" | "olive" | "black";
};
feature?: 'red' | 'blue' | 'green' | 'olive' | 'black';
}
export type IInputTextProps = DetailedHTMLProps<
InputHTMLAttributes<HTMLInputElement>,