Просмотр исходного кода

Remove material dependencies from Navbar

Tatiana Inama 6 лет назад
Родитель
Сommit
15cf3007f5
2 измененных файлов с 4 добавлено и 1 удалено
  1. 1 0
      recipes/package.json
  2. 3 1
      recipes/src/components/Navbar/index.tsx

+ 1 - 0
recipes/package.json

@@ -3,6 +3,7 @@
   "version": "0.1.0",
   "private": true,
   "dependencies": {
+    "@rmwc/button": "^6.0.14",
     "@rmwc/dialog": "^6.1.0",
     "@rmwc/drawer": "^6.0.14",
     "@rmwc/icon": "^6.0.14",

+ 3 - 1
recipes/src/components/Navbar/index.tsx

@@ -1,5 +1,7 @@
 import React, { ReactElement } from 'react';
-import Button from '@material/react-button';
+import { Button } from '@rmwc/button';
+
+import '@rmwc/button/styles';
 import './styles.scss';
 
 type NavbarProps = {