Skip to content
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
6 changes: 3 additions & 3 deletions examples/JS/TestJS.js → examples/js/test-js.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import Deck from '../../src/components/Deck.js';
import Slide from '../../src/components/Slide.js';
import SlideElementWrapper from '../../src/components/SlideElementWrapper';
import Deck from '../../src/components/deck.js';
import Slide from '../../src/components/slide.js';
import SlideElementWrapper from '../../src/components/slide-element-wrapper';

const TestJs = () => (
<Deck loop={true}>
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions examples/MDX/test-mdx.js → examples/mdx/test-mdx.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import slides from './slides.mdx';
import Deck from '../../src/components/Deck';
import Slide from '../../src/components/Slide';
import Deck from '../../src/components/deck';
import Slide from '../../src/components/slide';

import { MDXProvider } from '@mdx-js/react';

Expand Down
2 changes: 1 addition & 1 deletion mdx-slide-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ${inlineModules
/*
Step 10:
* Finally, declare the default export as an array of the slide components.
* See /examples/MDX/TestMDX.js for how to import and use the generated slide
* See /examples/mdx/test-mdx.js for how to import and use the generated slide
* components.
*/
const footer = `export const slideCount = ${slides.length};\n\n
Expand Down
4 changes: 2 additions & 2 deletions mdx-slides/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { render } from 'react-dom';
import { MDXProvider } from '@mdx-js/react';
import Deck from '../src/components/Deck';
import Slide from '../src/components/Slide';
import Deck from '../src/components/deck';
import Slide from '../src/components/slide';

// See the webpack config to see how this import alias is made
import slides from 'spectacle-user-mdx';
Expand Down
4 changes: 2 additions & 2 deletions src/components/Deck.js → src/components/deck.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';

import useDeck, { DeckContext } from '../hooks/useDeck';
import isComponentType from '../utils/isComponentType.js';
import useDeck, { DeckContext } from '../hooks/use-deck';
import isComponentType from '../utils/is-component-type.js';
import { useTransition, animated } from 'react-spring';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { useSpring, animated } from 'react-spring';

import { SlideContext } from '../hooks/useSlide';
import { SlideContext } from '../hooks/use-slide';

/**
* SlideElementWrapper provides a component for animating slideElements
Expand Down
6 changes: 3 additions & 3 deletions src/components/Slide.js → src/components/slide.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';

import useSlide, { SlideContext } from '../hooks/useSlide';
import { DeckContext } from '../hooks/useDeck';
import isComponentType from '../utils/isComponentType.js';
import useSlide, { SlideContext } from '../hooks/use-slide';
import { DeckContext } from '../hooks/use-deck';
import isComponentType from '../utils/is-component-type.js';

/**
* Slide component wraps anything going in a slide and maintains
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/hooks/useSlide.js → src/hooks/use-slide.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import { DeckContext } from './useDeck';
import { DeckContext } from './use-deck';
import debounce from '../utils/debounce';

/**
Expand Down
File renamed without changes.