Clean up, reimplement native paper, and sign in screen.

This commit is contained in:
Patrick Fic
2025-10-08 08:57:14 -07:00
parent b8261f001e
commit 091606f1ca
20 changed files with 839 additions and 687 deletions

View File

@@ -1,5 +1,17 @@
import { selectCurrentUser } from "@/redux/user/user.selectors";
import { Redirect } from "expo-router";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
export default function Index() {
return <Redirect href={`/jobs`} />;
const mapStateToProps = createStructuredSelector({
currentUser: selectCurrentUser,
});
function Index({ currentUser }) {
if (currentUser.authorized) {
return <Redirect href="/" />;
}
return <Redirect href="/sign-in" />;
}
export default connect(mapStateToProps, null)(Index);