Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
mnenie committed Jul 29, 2024
1 parent ae99b1a commit 4b34baf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/entities/user/model/user.store.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { defineStore } from 'pinia';
import { ref } from 'vue';
import type { UserType } from './types';
import type { User } from './types';

export const useUserStore = defineStore('user', () => {
const user = ref({} as UserType);
const user = ref({} as User);

return {
user
Expand Down
4 changes: 2 additions & 2 deletions src/pages/members/AllParticipants.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import { reactive } from 'vue';
import { useI18n } from 'vue-i18n';
import { MembersList } from '@/widgets/members';
import type { UserType } from '@/entities/user/model';
import type { User } from '@/entities/user/model';
const { t } = useI18n();
const members = reactive<UserType[]>([
const members = reactive<User[]>([
{ _id: '0', photoUrl: 'https://www.shadcn-vue.com/avatars/02.png', email: 'Alex Peshkov', role: 'admin' },
{ _id: '1', photoUrl: 'https://www.shadcn-vue.com/avatars/03.png', email: 'John Doe', role: 'member' },
{ _id: '2', photoUrl: 'https://www.shadcn-vue.com/avatars/04.png', email: 'Emily Johnson', role: 'member' }
Expand Down

0 comments on commit 4b34baf

Please sign in to comment.