Skip to content

Commit

Permalink
sidebar moved to core folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafabarmshory committed Jan 12, 2023
1 parent 88b2c3e commit 4d6e552
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/core/sidebar/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Sidebar } from "./sidebar";
export {
Sidebar
};
File renamed without changes.
5 changes: 2 additions & 3 deletions src/components/sidebar.ts → src/core/sidebar/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import {
useState,
} from "@odoo/owl";
import { v4 as uuidv4 } from 'uuid';
import { registry } from "../core/registry";
import { registry } from "../registry";

import "./sidebar.xml";
import "./sidebar.scss";
import { OPage } from "./page";

export class SidebarBrand extends Component {
static template = "components.sidebar.brand";
Expand Down Expand Up @@ -55,7 +54,7 @@ export class Sidebar extends Component {
SidebarCollapse,
};
state:{
pages: OPage[],
pages: Component[],
} = useState({
pages: [],
});
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/webclient/webclient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, useState, xml } from "@odoo/owl";
import { Footer } from "@web/components/footer";
import { Sidebar } from "@web/components/sidebar";
import { Sidebar } from "../core/sidebar";
import { Navbar } from "../core/navbar";
import { Router } from "@web/core/router";

Expand Down

0 comments on commit 4d6e552

Please sign in to comment.