Skip to content

Commit

Permalink
fix(withSplashScreen): rename withSplashScreen component, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
afenerol committed Oct 6, 2020
1 parent 0f4f38b commit 0db1c9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# React App + Firebase Auth & Realtime Database

:bangbang: **This project is under development, so it is not yet fully finalized.**

This project built with [Create React App](https://github.com/facebook/create-react-app) allows you to add / modify / delete character sheets for novels. This application uses Firebase for authentication and database.

## :fire: Prerequisite (Environment variables)
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { firebaseConfig } from './config/config';

import SignIn from './components/login/SignIn';
import Dashboard from './components/Dashboard';
import WithSplashScreen from './components/splash-screen/WithSplashScreen';
import withSplashScreen from './components/splash-screen/withSplashScreen';

const App = () => {
const signInWithGoogle = React.useCallback(async () => {
Expand Down Expand Up @@ -45,4 +45,4 @@ const App = () => {
);
};

export default WithSplashScreen(App);
export default withSplashScreen(App);
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import Launch from '../layout/Launch';

const WithSplashScreen = <P extends object>(
const withSplashScreen = <P extends object>(
WrappedComponent: React.ComponentType<P>
) => {
return class extends Component<P, { loading: boolean }> {
Expand Down Expand Up @@ -37,4 +37,4 @@ const WithSplashScreen = <P extends object>(
};
}

export default WithSplashScreen;
export default withSplashScreen;

0 comments on commit 0db1c9d

Please sign in to comment.