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

Fixed stack import path #58

Merged
merged 4 commits into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Stack is a reusable typed component that allows you to easily manage the layout
To use it in a React project, you can just import and use it as you would in a normal React component:

```js
import { Stack } from "@nerdgeschoss/shimmer/components/stack";
import { Stack } from "@nerdgeschoss/shimmer/dist/components/stack";

<Stack gapTablet={4} gapDesktop={12} line>
<div></div>
Expand All @@ -24,7 +24,7 @@ import { Stack } from "@nerdgeschoss/shimmer/components/stack";
</Stack>;
```

To use it in an HTML file, you can just import the css file directly from `@nerdgeschoss/shimmer/components/stack.css` and just implement the classes as they are in the stylesheet:
To use it in an HTML file, you can just import the css file directly from `@nerdgeschoss/shimmer/dist/components/stack.css` and just implement the classes as they are in the stylesheet:

```html
<div class="stack stack--line stack--tablet-4 stack--desktop-12">
Expand Down
4 changes: 2 additions & 2 deletions lib/shimmer/form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module Form
end
end

require_relative "./form/builder"
require_relative "./form/field"
require_relative "form/builder"
require_relative "form/field"

Dir["#{File.expand_path("./form", __dir__)}/*"].sort.each do |e|
require e
Expand Down
Loading