rename all 'writer' to 'photos'

This commit is contained in:
2020-10-12 19:53:36 +03:00
committed by Stepan Usatiuk
parent 63c30750af
commit a8b5117979
9 changed files with 43 additions and 39 deletions

View File

@@ -4,7 +4,7 @@ import { AuthScreen } from "~Auth/AuthScreen";
import { requireAuth } from "~Auth/AuthWrapper";
import { Home } from "~Home/Home";
export function AppComponent(props: RouteComponentProps) {
export const AppComponent: React.FunctionComponent<RouteComponentProps> = () => {
return (
<Switch>
<Route path="/signup" component={AuthScreen} />,
@@ -12,6 +12,6 @@ export function AppComponent(props: RouteComponentProps) {
<Route path="/" component={requireAuth(Home)} />,
</Switch>
);
}
};
export const App = withRouter(AppComponent);

View File

@@ -5,7 +5,7 @@ export const AppToaster = Toaster.create({
position: Position.TOP,
});
export function showPasswordSavedToast() {
export function showPasswordSavedToast(): void {
AppToaster.show({
message: "Password saved!",
intent: "success",
@@ -13,7 +13,7 @@ export function showPasswordSavedToast() {
});
}
export function showPasswordNotSavedToast(error: string) {
export function showPasswordNotSavedToast(error: string): void {
AppToaster.show({
message: "Password not saved! " + error,
intent: "danger",

View File

@@ -52,7 +52,7 @@ export class HomeComponent extends React.PureComponent<IHomeProps> {
minimal={true}
onClick={() => this.props.history.push("/")}
>
Writer
Photos
</Button>
<Navbar.Divider />
</Navbar.Group>

View File

@@ -10,7 +10,7 @@ export function LandingComponent(props: RouteComponentProps) {
<>
<Navbar>
<Navbar.Group align={Alignment.LEFT}>
<Navbar.Heading>Writer</Navbar.Heading>
<Navbar.Heading>Photos</Navbar.Heading>
<Navbar.Divider />
</Navbar.Group>
<Navbar.Group align={Alignment.RIGHT}>

View File

@@ -1,20 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&display=swap&subset=cyrillic,cyrillic-ext,latin-ext"
rel="stylesheet"
/>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Writer</title>
</head>
<link
href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&display=swap&subset=cyrillic,cyrillic-ext,latin-ext"
rel="stylesheet" />
<body>
<div id="body"></div>
<script src="./index.tsx"></script>
</body>
</html>
<title>Photos</title>
</head>
<body>
<div id="body"></div>
<script src="./index.tsx"></script>
</body>
</html>

View File

@@ -1,3 +1,3 @@
export function flushPromises() {
export function flushPromises(): Promise<unknown> {
return new Promise(setImmediate);
}