Skip to content

Commit

Permalink
fix notifications errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VachetVirginie committed Apr 4, 2024
1 parent 0a0ae61 commit 7ba9f7a
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 18 deletions.
30 changes: 15 additions & 15 deletions assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ a {
}

// FormInput styles
.vd-form-input {
width: $vd-input-medium;

&-s {
width: $vd-input-small;
}

&-l {
width: $vd-input-large;
}

&-xl {
width: $vd-input-x-large;
}
}
//.vd-form-input {
// width: $vd-input-medium;
//
// &-s {
// width: $vd-input-small;
// }
//
// &-l {
// width: $vd-input-large;
// }
//
// &-xl {
// width: $vd-input-x-large;
// }
//}

// VBtnGroup styles
.v-btn-group {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"dependencies": {
"@cnamts/design-tokens": "2.12.0",
"@cnamts/synapse-bridge": "1.1.10-alpha.0"
"@cnamts/synapse-bridge": "1.1.10-alpha.0",
"vue": "^3.4.21"
},
"devDependencies": {
"@babel/preset-env": "7.22.15",
Expand Down
5 changes: 4 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion store/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
import { createStore } from 'vuex';
import { notification } from '@cnamts/synapse-bridge/modules/notification';
import VuexPersistence from 'vuex-persist';

export default createStore({});
import { RootState } from './types';

const vuexLocal = new VuexPersistence<RootState>({
storage: window.sessionStorage,
});

const store = createStore({
state: {},
modules: {
notification
},
plugins: [
vuexLocal.plugin
]
});

export default store;
8 changes: 8 additions & 0 deletions store/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint-disable @typescript-eslint/no-empty-interface */
export interface RootState {}

/**
* This is used to properly type components using mappers from Vuex
* @see https://github.com/vuejs/vuex/pull/1121
*/
export interface VuexBindings {}

0 comments on commit 7ba9f7a

Please sign in to comment.