docs/js #26
@ -39,8 +39,6 @@ export default function Tabs(props: {
|
||||
const [tabs, setTabs] = createSignal<TabType[]>([]);
|
||||
|
||||
const addTab = (tab: TabType) => {
|
||||
console.log("Adding tab", tab);
|
||||
|
||||
setTabs((prevTabs) => {
|
||||
// Append to the end of the array and make sure it's unique
|
||||
if (prevTabs.some((t) => t.value === tab.value)) {
|
||||
@ -113,7 +111,6 @@ Tabs.Item = (props: {
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
console.log("Mounting tab", props.label);
|
||||
tabsContext.addTab({ label: props.label, value: props.value });
|
||||
});
|
||||
|
||||
|
||||
@ -127,10 +127,10 @@ export const navigation: NavigationSection[] = [
|
||||
title: "Fonctions et portée",
|
||||
href: "/docs/javascript/fonctions-et-portee",
|
||||
},
|
||||
{
|
||||
title: "Le DOM",
|
||||
href: "/docs/javascript/dom",
|
||||
},
|
||||
// {
|
||||
// title: "Le DOM",
|
||||
// href: "/docs/javascript/dom",
|
||||
// },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@ -25,7 +25,6 @@ export async function data(pageContext: PageContext) {
|
||||
if (cachePathname === "") cachePathname = "index";
|
||||
|
||||
const doc = docCache.get(cachePathname);
|
||||
console.log(doc);
|
||||
|
||||
if (!doc) {
|
||||
console.error(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user