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

Minor refactor to kebab-case for Vercel demo site components. #45

Merged
merged 1 commit into from
Dec 19, 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
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { TabsWrapper, TabList, TabPanel, TabButton } from './tabs';
import Counter from './Counter.svelte';
import Counter from './counter-tag.svelte';
</script>

<TabsWrapper>
Expand All @@ -19,23 +19,23 @@

<TabPanel>
<h2>First nested panel</h2>
<Counter count="1" award="5"/>
<Counter count={1} award={5} />
</TabPanel>

<TabPanel>
<h2>Second nested panel</h2>
<Counter count="2" award="5"/>
<Counter count={2} award={5} />
</TabPanel>
</TabsWrapper>
</TabPanel>

<TabPanel>
<h2>Second panel</h2>
<Counter count="3" award="5"/>
<Counter count={3} award={5} />
</TabPanel>

<TabPanel>
<h2>Third panel</h2>
<Counter count="4" award="5"/>
<Counter count={4} award={5} />
</TabPanel>
</TabsWrapper>
9 changes: 5 additions & 4 deletions demo/vercel/src/lib/tabs/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { default as TabsWrapper } from './TabsWrapper.svelte';
export { default as TabList } from './TabList.svelte';
export { default as TabPanel } from './TabPanel.svelte';
export { default as TabButton } from './TabButton.svelte';
// NOTE: This index file only exists for the tabs-demo.svelte file.
export { default as TabsWrapper } from './tabs-wrapper.svelte';
export { default as TabList } from './tab-list.svelte';
export { default as TabPanel } from './tab-panel.svelte';
export { default as TabButton } from './tab-button.svelte';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { getContext } from 'svelte';
import { TABS } from './TabsWrapper.svelte';
import { TABS } from './tabs-wrapper.svelte';

const tab = {};
const { registerTab, selectTab, selectedTab } = getContext(TABS);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { getContext } from 'svelte';
import { TABS } from './TabsWrapper.svelte';
import { TABS } from './tabs-wrapper.svelte';

const panel = {};
const testContext = getContext(TABS);
Expand Down