| 1 | import { redirect } from "react-router"; |
| 2 | |
| 3 | import { FIRST_SETTINGS_PAGE } from "../../lib/account-settings"; |
| 4 | |
| 5 | /** |
| 6 | * `/settings` is the first of its pages. A browser keeps the `#anchor` of |
| 7 | * an old link across this redirect, and the settings layout sends it on to |
| 8 | * the page that anchor now has. |
| 9 | */ |
| 10 | export function loader() { |
| 11 | throw redirect(FIRST_SETTINGS_PAGE); |
| 12 | } |
| 13 | |
| 14 | export default function SettingsIndex() { |
| 15 | return null; |
| 16 | } |