Merge pull request #1095 from sharetribe/fix-classname-for-examples

Fix class name for Styleguide examples
This commit is contained in:
Vesa Luusua 2019-05-22 12:49:05 +03:00 committed by GitHub
commit e01dfa0258
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 10 additions and 7 deletions

View file

@ -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

View file

@ -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;

View file

@ -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,

View file

@ -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();

View file

@ -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

View file

@ -1,5 +1,5 @@
import Footer from './Footer';
import css from './Footer.example.css';
import css from './FooterExample.css';
export const Default = {
component: Footer,

View file

@ -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
@ -48,6 +48,7 @@ class ModalInMobileWrapper extends Component {
export const Empty = {
component: ModalInMobileWrapper,
useDefaultWrapperStyles: false,
description: 'Modal feature is visible if windows width is less than 400px.',
props: {
id: 'ExampleModalInMobile',
showAsModalMaxWidth: 400,

View file

@ -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;