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

Fix class name for Styleguide examples #1095

Merged
merged 2 commits into from
May 22, 2019
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern:

## Upcoming version 2019-XX-XX

- [fix] Renamed Component.example.css files to ComponentExample.css to fix bug introduced in one of
the library updates. [#1095](https://github.com/sharetribe/flex-template-web/pull/1095)
- [add] `rawOnly` flag for Styleguide examples using fixed positioning or full-page dimensions.
[#1094](https://github.com/sharetribe/flex-template-web/pull/1094)
- [fix] Show error when typing credit card number if e.g. the number is invalid. Fixes bug that was
Expand Down
2 changes: 1 addition & 1 deletion src/components/AddImages/AddImages.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import findIndex from 'lodash/findIndex';
import uniqueId from 'lodash/uniqueId';
import { types as sdkTypes } from '../../util/sdkLoader';
import AddImages from './AddImages';
import css from './AddImages.example.css';
import css from './AddImagesExample.css';

const { UUID } = sdkTypes;

Expand Down
2 changes: 1 addition & 1 deletion src/components/BookingPanel/BookingPanel.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { createListing } from '../../util/test-data';
import { LISTING_STATE_CLOSED } from '../../util/types';
import BookingPanel from './BookingPanel';
import css from './BookingPanel.example.css';
import css from './BookingPanelExample.css';

export const Default = {
component: BookingPanel,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/Button.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { Component } from 'react';
import { IconCheckmark } from '../../components';
import Button, { PrimaryButton, SecondaryButton, InlineTextButton } from './Button';

import css from './Button.example.css';
import css from './ButtonExample.css';

const preventDefault = e => {
e.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion src/components/FieldTextInput/FieldTextInput.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as validators from '../../util/validators';
import { Button } from '../../components';
import FieldTextInput from './FieldTextInput';

import css from './FieldTextInput.example.css';
import css from './FieldTextInputExample.css';

const FormComponent = props => (
<FinalForm
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Footer from './Footer';
import css from './Footer.example.css';
import css from './FooterExample.css';

export const Default = {
component: Footer,
Expand Down
3 changes: 2 additions & 1 deletion src/components/ModalInMobile/ModalInMobile.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { Component } from 'react';
import { Button } from '../../components';
import ModalInMobile from './ModalInMobile';
import css from './ModalInMobile.example.css';
import css from './ModalInMobileExample.css';

const onManageDisableScrolling = (componentId, scrollingDisabled = true) => {
// We are just checking the value for now
Expand Down Expand Up @@ -48,6 +48,7 @@ class ModalInMobileWrapper extends Component {
export const Empty = {
component: ModalInMobileWrapper,
useDefaultWrapperStyles: false,
description: 'Modal feature is visible if window’s width is less than 400px.',
props: {
id: 'ExampleModalInMobile',
showAsModalMaxWidth: 400,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ResponsiveImage/ResponsiveImage.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ResponsiveImage from './ResponsiveImage';
import { types as sdkTypes } from '../../util/sdkLoader';

import css from './ResponsiveImage.example.css';
import css from './ResponsiveImageExample.css';

const { UUID } = sdkTypes;

Expand Down