Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jschr committed Apr 23, 2022
1 parent a75928a commit 550b166
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default function Header({ logoColor, children }: React.PropsWithChildren<
{children}
</div>
</header>
{/* <div className="header-threshold" /> */}
</>
);
}
2 changes: 0 additions & 2 deletions app/components/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ export default function Select<
const [isOpen, setIsOpen] = React.useState(false);
const anchor = React.useRef<HTMLButtonElement | null>(null);

// const handle

const selectedOption = options.find((o) => o.value === value);

return (
Expand Down
3 changes: 1 addition & 2 deletions app/routes/e/$extensionSlug/$themeSlug/open.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export const loader: LoaderFunction = async ({ request, params }) => {
throw new Error('Missing extension');
}
if (!themeSlug) {
// TODO: Redirect to first theme in extension
throw new Error('Missing extension');
throw new Error('Missing theme');
}

const query = parseQuery(request);
Expand Down
3 changes: 1 addition & 2 deletions app/routes/e/$extensionSlug/$themeSlug[.jpg].ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export const loader: LoaderFunction = async ({ request, params }) => {
throw new Error('Missing extension');
}
if (!themeSlug) {
// TODO: Redirect to first theme in extension
throw new Error('Missing extension');
throw new Error('Missing theme');
}

const query = parseQuery(request);
Expand Down
3 changes: 1 addition & 2 deletions app/routes/e/$extensionSlug/$themeSlug[.svg].ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export const loader: LoaderFunction = async ({ request, params }) => {
throw new Error('Missing extension');
}
if (!themeSlug) {
// TODO: Redirect to first theme in extension
throw new Error('Missing extension');
throw new Error('Missing theme');
}

const query = parseQuery(request);
Expand Down

0 comments on commit 550b166

Please sign in to comment.