mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-10 20:46:39 +00:00
* 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
19 lines
426 B
TypeScript
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;
|