forked from sombochea/verdaccio-ui
initial commit
This commit is contained in:
16
src/components/NoItems/index.js
Normal file
16
src/components/NoItems/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @prettier
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { IProps } from './types';
|
||||
import { Wrapper } from './styles';
|
||||
|
||||
const NoItems = ({ text }: IProps) => (
|
||||
<Wrapper>
|
||||
<h2>{text}</h2>
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
export default NoItems;
|
||||
12
src/components/NoItems/styles.js
Normal file
12
src/components/NoItems/styles.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @prettier
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import styled from 'react-emotion';
|
||||
|
||||
export const Wrapper = styled.div`
|
||||
&& {
|
||||
margin: 5em 0;
|
||||
}
|
||||
`;
|
||||
8
src/components/NoItems/types.js
Normal file
8
src/components/NoItems/types.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* @prettier
|
||||
* @flow
|
||||
*/
|
||||
|
||||
export interface IProps {
|
||||
text: string;
|
||||
}
|
||||
Reference in New Issue
Block a user