Skip to content

Commit

Permalink
Cleanup browser console messages and warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
toddriley committed Oct 4, 2023
1 parent 043f81d commit 12aa2d6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion docs/src/components/Mascot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function Mascot() {
"object-cover",
"object-left",
"block",
"overflow-visible",
"animate-slide-and-fade",
"block",
"z-[-1]",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/Navigation/LanguageSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function LanguageSelect({
{Object.keys(languageSlugsToLabels)
.filter((slug) => slug !== selectedLanguage)
.map((slug) => (
<Listbox.Option value={slug}>
<Listbox.Option value={slug} key={slug}>
<Button
className={clsx([
"w-[110px]",
Expand Down
2 changes: 0 additions & 2 deletions docs/src/lib/languageFromPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ export type PathParts = {
subpath: "" | "get-started" | "advanced";
};

// TODO handle 404s
export function getPathParts(path: string): PathParts {
const splitPath = path.split("/");
console.log(splitPath);
return {
language: splitPath[1],
subpath: splitPath.length === 3 ? splitPath[2] : "",
Expand Down

0 comments on commit 12aa2d6

Please sign in to comment.