devbook_ts/src/constants/routes.ts
Ruidy 9e30322ffc
📊Dashboard (#7)
* connect Dashboard to store

* delete account button logs out...

* buttons routing functional

* refactor enhance to store

* use an enum for routes and statuses

* add statuses enum and enable EditProfile Form

* conditional display of social links

* Links type,

* display alert on EditProfile form submit

* refactor extract alert interface

* update useForm hook to handle checkboxes

* enable add education form

* enable add experience form

* add blank dev Profile on signup

* enable delete credential button

* delete account set profile to inactive

* add isActive field to dev, checks for user existance on sign up to not overwrite inactive profiles
2020-05-16 14:17:37 +02:00

19 lines
426 B
TypeScript

/**
* Register all Routes here for easy future modification.
* Paths must start with '/'
*/
enum Routes {
LANDING = '/',
SIGN_UP = '/signup',
SIGN_IN = '/signin',
DEVELOPERS = '/developers',
PROFILE = '/profile',
EDIT_PROFILE = '/edit-profile',
DASHBOARD = '/dashboard',
ADD_EXPERIENCE = '/add-experience',
ADD_EDUCATION = '/add-education',
POST = '/post',
POSTS = '/posts',
}
export default Routes;