Skip to content

Commit

Permalink
refactor: Rename instances of "experiment" to "block"
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jun 28, 2024
1 parent 7905929 commit 1cce311
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,22 @@ const App = () => {
{/* Default experiment */}
<Route path="/" exact>
<Redirect
to={URLS.experiment.replace(":slug", EXPERIMENT_SLUG)}
to={URLS.block.replace(":slug", EXPERIMENT_SLUG)}
/>
</Route>

{/* Profile */}
<Route path={URLS.profile} exact>
<Profile slug={EXPERIMENT_SLUG} />
</Route>

<Route path={URLS.internalRedirect} component={InternalRedirect} />

{/* Experiment Collection */}
<Route path={URLS.experimentCollection} component={ExperimentCollection} />

{/* Block */}
<Route path={URLS.experiment} component={Block} />
<Route path={URLS.block} component={Block} />

<Route path={URLS.session} />

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const URLS = {
about: "/about",
profile: "/profile",
storeProfile: "/profile/store",
experiment: "/:slug",
block: "/:slug",
experimentCollectionAbout: "/collection/:slug/about",
experimentCollection: "/collection/:slug",
internalRedirect: "/redirect/:path",
Expand Down

0 comments on commit 1cce311

Please sign in to comment.