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

Default-theme: Allow to use AlgoliaSearchBox with another theme #267

Closed
tinchox5 opened this issue Apr 26, 2018 · 2 comments
Closed

Default-theme: Allow to use AlgoliaSearchBox with another theme #267

tinchox5 opened this issue Apr 26, 2018 · 2 comments

Comments

@tinchox5
Copy link

tinchox5 commented Apr 26, 2018

What is it happening?
Can't use AlgoliaSearchBox in a custom theme because the component is imported in NavBar using @:

import AlgoliaSearchBox from '@AlgoliaSearchBox'

Solution proposed:

import AlgoliaSearchBox from './AlgoliaSearchBox'

Edit: The problem was because I created a custom theme based on the default-theme. So, I only need to edit the Navbar.vue of my custom theme to solve the problem.

@yyx990803
Copy link
Member

I don't think I'm understanding your problem.

@ulivz
Copy link
Member

ulivz commented Apr 26, 2018

I don't think I'm understanding your problem too.

BTW, If you just want to use AlgoliaSearchBox at your custom theme, you just need:

import AlgoliaSearchBox from '@default-theme/AlgoliaSearchBox.vue'

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

No branches or pull requests

3 participants