Skip to content

Commit

Permalink
Refactored child components into their own sub directory for easier i…
Browse files Browse the repository at this point in the history
…mport
  • Loading branch information
ncoetzer committed Oct 6, 2023
1 parent 4cb8b51 commit 9126341
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import { StyledComponentContext } from '../styled-components-context';
import { InlineControlsStyleWrapper } from './styles';
import { StyledComponentContext } from '../../styled-components-context';
import { InlineControlsStyleWrapper } from '../styles';

export const Figure = (props) => {
const { style, children, ...rest } = props;
Expand Down
5 changes: 5 additions & 0 deletions components/image/child-components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Media, ImageContext } from './media';
import { Figure } from './figure';
import { InlineControls } from './inline-controls';

export { Media, ImageContext, Figure, InlineControls };
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions components/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import PropTypes from 'prop-types';
/**
* Internal Dependencies
*/

import { Media, ImageContext } from './media';
import { Figure } from './figure';
import { InlineControls } from './inline-controls';
import { Media, ImageContext, Figure, InlineControls } from './child-components';
import { useMedia } from '../../hooks/use-media';

const ImageWrapper = (props) => {
Expand Down

0 comments on commit 9126341

Please sign in to comment.