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

Make links menu optional #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

TaPiOn-
Copy link

@TaPiOn- TaPiOn- commented Mar 22, 2023

No problem when you declare your HeaderActionProps in json but got an error in editor when you declare in js. By setting it optional we can create a js file with a const links declaration like this:

import { HeaderActionProps } from './HeaderAction';

export const links: HeaderActionProps['links'] = [

No problem when you declare your HeaderActionProps in json but got an error in editor when you declare in js.
By setting it optional we can create a js file with a const links declaration like this:

import { HeaderActionProps } from './HeaderAction';

export const links: HeaderActionProps['links'] = [
@netlify
Copy link

netlify bot commented Mar 22, 2023

Deploy Preview for zesty-dragon-10e479 ready!

Name Link
🔨 Latest commit f0e15f5
🔍 Latest deploy log https://app.netlify.com/sites/zesty-dragon-10e479/deploys/641a9df594adbf000866d75a
😎 Deploy Preview https://deploy-preview-57--zesty-dragon-10e479.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

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.

1 participant