Skip to content

Commit

Permalink
fix: remove example state, left just an empty app state for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dylandepass committed Nov 23, 2023
1 parent 7dd9cfd commit 55f9b05
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 90 deletions.
14 changes: 0 additions & 14 deletions src/extension/app/aem-sidekick.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
*/

import { LitElement, html, css } from 'lit';
import { reaction } from 'mobx';
import { appStore } from './store/app.js';

class AemSidekick extends LitElement {
static properties = {
Expand Down Expand Up @@ -41,16 +39,6 @@ class AemSidekick extends LitElement {
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
this.getTheme();
});

this.reactionDisposer = reaction(
// Reaction to this specific property
() => appStore.userStore.value,
() => {
console.log('reaction: user store');
// Update component when value changes
this.requestUpdate();
},
);
}

disconnectedCallback() {
Expand All @@ -71,9 +59,7 @@ class AemSidekick extends LitElement {
color=${this.theme === 'dark' ? 'dark' : 'light'}
scale="medium"
>
<example-element></example-element>
<action-bar></action-bar>
${appStore.userStore.value}
</sp-theme>
`;
}
Expand Down
46 changes: 0 additions & 46 deletions src/extension/app/components/example.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/extension/app/store/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@
*/

import { UserStore } from './user.js';
import { SitesStore } from './sites.js';

class AppStore {
constructor() {
this.userStore = new UserStore(this);
this.siteStore = new SitesStore(this);
}
}

Expand Down
27 changes: 0 additions & 27 deletions src/extension/app/store/sites.js

This file was deleted.

1 change: 0 additions & 1 deletion src/extension/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ import '@spectrum-web-components/icons-workflow/icons/sp-icon-real-time-customer

import './app/aem-sidekick.js';
import './app/components/action-bar.js';
import './app/components/example.js';

0 comments on commit 55f9b05

Please sign in to comment.