feature: add web & migrate commands

This commit is contained in:
Jordan Knott
2020-07-15 18:20:08 -05:00
parent 1e9813601e
commit 90515f6aa4
31 changed files with 1300 additions and 640 deletions

View File

@ -1,18 +1,18 @@
import React, { useRef } from 'react';
import React, {useRef} from 'react';
import Admin from '.';
import { theme } from 'App/ThemeStyles';
import {theme} from 'App/ThemeStyles';
import NormalizeStyles from 'App/NormalizeStyles';
import BaseStyles from 'App/BaseStyles';
import { ThemeProvider } from 'styled-components';
import { action } from '@storybook/addon-actions';
import {ThemeProvider} from 'styled-components';
import {action} from '@storybook/addon-actions';
export default {
component: Admin,
title: 'Admin',
parameters: {
backgrounds: [
{ name: 'gray', value: '#f8f8f8', default: true },
{ name: 'white', value: '#ffffff' },
{name: 'gray', value: '#f8f8f8', default: true},
{name: 'white', value: '#ffffff'},
],
},
};
@ -26,13 +26,14 @@ export const Default = () => {
<Admin
onInviteUser={action('invite user')}
initialTab={1}
onUpdateUserPassword={action('update user password')}
onDeleteUser={action('delete user')}
users={[
{
id: '1',
username: 'jordanthedev',
email: 'jordan@jordanthedev.com',
role: { code: 'admin', name: 'Admin' },
role: {code: 'admin', name: 'Admin'},
fullName: 'Jordan Knott',
profileIcon: {
bgColor: '#fff',