feat: Added Theme and migrate to emotion@10.x ๐Ÿš€ (#286)

* chore: updated emotion dependency

* feat: introduced theme

* refactor: updated emotion styles

* fix: fixed emotion error

* fix: fixed tests

* chore: add missing types

Co-Authored-By: Thomas Klein <tmkn@users.noreply.github.com>
This commit is contained in:
Priscila Oliveira
2019-11-23 13:41:14 +01:00
committed by Juan Picado @jotadeveloper
parent a0dcf87368
commit 111f0c50e5
105 changed files with 1884 additions and 913 deletions

View File

@@ -1,5 +1,6 @@
import React from 'react';
import { render } from '@testing-library/react';
import { render } from '../../utils/test-react-testing-library';
import DetailContainer from './DetailContainer';

View File

@@ -1,5 +1,5 @@
import React, { ChangeEvent, useState, useEffect } from 'react';
import styled from 'react-emotion';
import styled from '@emotion/styled';
import { default as MuiTabs } from '../../muiComponents/Tabs';
import Tab from '../../muiComponents/Tab';

View File

@@ -1,11 +1,15 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`DetailContainer renders correctly 1`] = `
.emotion-0 {
margin-bottom: 16px;
}
<div
class="MuiBox-root MuiBox-root-2"
>
<div
class="MuiTabs-root css-1qm1lh emotion-0"
class="MuiTabs-root emotion-0 emotion-1"
>
<div
class="MuiTabs-scroller MuiTabs-fixed"