fix lint: use let instead of const for $ref

Fixes lint no-const-assign.
This commit is contained in:
Johann150 2022-07-04 16:22:11 +02:00 committed by Chloe Kudryavtsev
parent 2aa14b05bf
commit c9b27706a3
3 changed files with 5 additions and 5 deletions

View file

@ -74,8 +74,8 @@ const props = defineProps<{
postId: string;
}>();
const post = $ref(null);
const error = $ref(null);
let post = $ref(null);
let error = $ref(null);
const otherPostsPagination = {
endpoint: 'users/gallery/posts' as const,
limit: 6,

View file

@ -118,7 +118,7 @@ const fgColors = [
{ color: 'pink', forLight: '#84667d', forDark: '#e4d1e0', forPreview: '#b12390' },
];
const theme = $ref<Partial<Theme>>({
let theme = $ref<Partial<Theme>>({
base: 'light',
props: lightTheme.props,
});

View file

@ -60,8 +60,8 @@ const DESKTOP_THRESHOLD = 1100;
let isDesktop = $ref(window.innerWidth >= DESKTOP_THRESHOLD);
let pageMetadata = $ref<null | ComputedRef<PageMetadata>>();
const widgetsShowing = $ref(false);
const fullView = $ref(false);
let widgetsShowing = $ref(false);
let fullView = $ref(false);
let globalHeaderHeight = $ref(0);
const wallpaper = localStorage.getItem('wallpaper') != null;
const showMenuOnTop = $computed(() => defaultStore.state.menuDisplay === 'top');