Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: the 'base' and a few 'header' components #6

Merged
merged 2 commits into from
May 21, 2024

Conversation

orlinmalkja
Copy link
Contributor

No description provided.

@orlinmalkja orlinmalkja self-assigned this May 17, 2024
const props = defineProps(['name']);
//const props = defineProps(['name']);
export interface Props {
name: string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I set the type of the name to be part of a list of names, or just let it string ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string should be enough


const show = computed(() => config.value?.header?.show);
const manifests = computed(() => store.getters['contents/manifests']);
const store = useStore();
const config = computed(() => store.getters['config/config']);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to create an interface and assign it as a type to 'config' ?

import { getIcon } from '@/utils/icons';

const props = defineProps(['name']);
//const props = defineProps(['name']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused comment

@orlinmalkja orlinmalkja merged commit 49274d2 into develop May 21, 2024
2 checks passed
@orlinmalkja orlinmalkja deleted the omalkja/use-typescript#2 branch June 6, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants