rename composable files to composable notation
This commit is contained in:
parent
d851db2fcc
commit
0a3c9f71d8
18 changed files with 217 additions and 202 deletions
21
src/render/composables/useProfile.ts
Normal file
21
src/render/composables/useProfile.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { ref } from "vue";
|
||||
|
||||
const profile = ref();
|
||||
|
||||
export const useProfile = () => {
|
||||
|
||||
const setProfile = (payload: Profile) => {
|
||||
profile.value = payload;
|
||||
}
|
||||
|
||||
const clearProfile = () => {
|
||||
profile.value = null;
|
||||
}
|
||||
|
||||
return {
|
||||
setProfile,
|
||||
clearProfile,
|
||||
profile
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue