mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-24 11:03:17 -04:00
20 lines
445 B
JavaScript
20 lines
445 B
JavaScript
import React from 'react';
|
|
import { Router } from '@reach/router';
|
|
import { withPrefix } from 'gatsby';
|
|
|
|
import RedirectHome from '../components/RedirectHome';
|
|
import ShowSettings from '../client-only-routes/ShowSettings';
|
|
|
|
function Settings() {
|
|
return (
|
|
<Router>
|
|
<ShowSettings path={withPrefix('/settings')} />
|
|
<RedirectHome default={true} />
|
|
</Router>
|
|
);
|
|
}
|
|
|
|
Settings.displayName = 'Settings';
|
|
|
|
export default Settings;
|