Add media file and remove stray comment
This commit is contained in:
@@ -45,8 +45,6 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp
|
||||
private _unlisten: () => void;
|
||||
public componentDidMount(): void {
|
||||
this._adjustStepIfShould();
|
||||
// Wait until the step is adjusted to decide whether we should show onboarding.
|
||||
// setTimeout(this._autoStartOnboardingIfShould.bind(this), 1000);
|
||||
// If there is a route change, just close onboarding.
|
||||
this._unlisten = this.props.history.listen(() => this.props.updateIsRunning(false));
|
||||
}
|
||||
|
||||
15
packages/website/ts/style/media.ts
Normal file
15
packages/website/ts/style/media.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import * as _ from 'lodash';
|
||||
import { css } from 'ts/style/theme';
|
||||
import { ScreenWidths } from 'ts/types';
|
||||
|
||||
const generateMediaWrapper = (screenWidth: ScreenWidths) => (...args: any[]) => css`
|
||||
@media (max-width: ${screenWidth}) {
|
||||
${css.apply(css, args)};
|
||||
}
|
||||
`;
|
||||
|
||||
export const media = {
|
||||
small: generateMediaWrapper(ScreenWidths.Sm),
|
||||
medium: generateMediaWrapper(ScreenWidths.Md),
|
||||
large: generateMediaWrapper(ScreenWidths.Lg),
|
||||
};
|
||||
Reference in New Issue
Block a user