2018-09-25 21:46:14 +09:00
|
|
|
export const preferencesLink = '/settings/preferences';
|
|
|
|
export const profileLink = '/settings/profile';
|
|
|
|
export const signOutLink = '/auth/sign_out';
|
2022-09-29 13:22:12 +09:00
|
|
|
export const privacyPolicyLink = '/privacy-policy';
|
2018-09-25 21:46:14 +09:00
|
|
|
export const accountAdminLink = (id) => `/admin/accounts/${id}`;
|
2022-01-17 17:41:33 +09:00
|
|
|
export const statusAdminLink = (account_id, status_id) => `/admin/accounts/${account_id}/statuses?id=${status_id}`;
|
2019-07-15 06:32:42 +09:00
|
|
|
export const filterEditLink = (id) => `/filters/${id}/edit`;
|
2019-08-31 20:04:26 +09:00
|
|
|
export const relationshipsLink = '/relationships';
|
|
|
|
export const securityLink = '/auth/edit';
|
2022-05-16 00:30:40 +09:00
|
|
|
export const preferenceLink = (setting_name) => {
|
|
|
|
switch (setting_name) {
|
|
|
|
case 'user_setting_expand_spoilers':
|
|
|
|
case 'user_setting_disable_swiping':
|
|
|
|
return `/settings/preferences/appearance#${setting_name}`;
|
|
|
|
default:
|
|
|
|
return preferencesLink;
|
|
|
|
}
|
|
|
|
};
|