aboutsummaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
authorEug-VS <eug-vs@keemail.me>2020-02-08 15:36:32 +0300
committerEug-VS <eug-vs@keemail.me>2020-02-08 15:43:32 +0300
commit4af6a41a8bfc9d5f8b90d3aa8bc96a804607dba0 (patch)
tree9f2b33df235fdf3dd32c2710400bca51d6bedb15 /src/index.tsx
parentc57197bd7fd37161c42a1a6fd272c6666c8a13a1 (diff)
downloadreact-benzin-4af6a41a8bfc9d5f8b90d3aa8bc96a804607dba0.tar.gz
feat: add Button component
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 0d05155..9d32585 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
-import { makeStyles, Button, Link } from '@material-ui/core';
+import { makeStyles, Link } from '@material-ui/core';
import {
BenzinThemeProvider,
@@ -9,6 +9,7 @@ import {
Window,
ContentSection,
SmartList,
+ Button,
} from './lib';
import icon from './assets/icon.svg';
@@ -48,13 +49,13 @@ const App: React.FC = () => {
</p>
{(index % 2 === 0)?
(
- <Button variant="contained" color="primary">
+ <Button color="primary">
primary
</Button>
)
:
(
- <Button variant="contained" color="secondary">
+ <Button color="secondary">
secondary
</Button>
)
@@ -81,10 +82,10 @@ const App: React.FC = () => {
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque dapibus suscipit ligula. Donec posuere augue in quam. Etiam vel tortor sodales tellus ultricies commodo. Suspendisse potenti. Aenean in sem ac leo mollis blandit. Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi. <Link href="#">Phasellus lacus.</Link> Etiam laoreet quam sed arcu. Phasellus at dui in ligula mollis ultricies. Integer placerat tristique nisl. Praesent augue. Fusce commodo.
</p>
- <Button variant="contained" color="secondary">
+ <Button color="secondary">
secondary
</Button>
- <Button variant="contained" color="primary">
+ <Button color="primary">
primary
</Button>
</ContentSection>