mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 15:27:49 +01:00
rename all 'writer' to 'photos'
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}>
|
||||
|
||||
@@ -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>
|
||||
@@ -1,3 +1,3 @@
|
||||
export function flushPromises() {
|
||||
export function flushPromises(): Promise<unknown> {
|
||||
return new Promise(setImmediate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user