summaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 3b08ba8..779f0d0 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -2,12 +2,25 @@ import React from 'react';
import ReactDOM from 'react-dom';
import 'tailwindcss/tailwind.css';
import Paper from './components/Paper';
+import Header from './components/Header';
+import Button from './components/Button';
+const navigation = [
+ { name: 'Главная', route: '/'},
+ { name: 'Товары', route: '/products'}
+];
const App: React.FC = () => (
- <Paper>
- Hello, world!
- </Paper>
+ <>
+ <Header navigation={navigation} />
+ <Paper>
+ <p>
+ Привет, мир!
+ <Button>Нажми меня</Button>
+ <Button variant="outlined">Отменить</Button>
+ </p>
+ </Paper>
+ </>
);
ReactDOM.render(