Commit c8580a4b authored by Merekeyev Dias's avatar Merekeyev Dias

changed icons in Home.tsx

parent 8f82a9df
import { useNavigate } from 'react-router'; import { useNavigate } from 'react-router';
import '../../styles/Home/home.css'; import '../../styles/Home/home.css';
import add from "/section_add.png"; import { Button, Pagination } from 'antd';
import { Pagination } from 'antd'; import { MaterialSymbol } from 'react-material-symbols';
const Home = () => { const Home = () => {
const navigate = useNavigate(); const navigate = useNavigate();
...@@ -9,8 +9,7 @@ const Home = () => { ...@@ -9,8 +9,7 @@ const Home = () => {
return ( return (
<section className='section'> <section className='section'>
<div className="add"> <div className="add">
<img src={add} alt="add_png" onClick={() => navigate("/add")} className='add_button' /> <Button href='/' icon={<MaterialSymbol icon='add_circle' size={20} color='#0E2B52' />} className='add_title'>Добавить</Button>
<span className='add_title'>Добавить</span>
</div> </div>
<div className="data"> <div className="data">
<table className="data-table"> <table className="data-table">
...@@ -34,8 +33,16 @@ const Home = () => { ...@@ -34,8 +33,16 @@ const Home = () => {
<td>ТОО “Рога и Копыта”</td> <td>ТОО “Рога и Копыта”</td>
<td>esutd-dev.arta.kz </td> <td>esutd-dev.arta.kz </td>
<td>активен</td> <td>активен</td>
<td><button className="view-btn" onClick={() => navigate("/edit")}>👁️</button></td> <td>
<td><button className="delete-btn">🗑️</button></td> <button className="view-btn" onClick={() => navigate("/edit")}>
<MaterialSymbol icon='visibility' size={20} color='#0E2B52' />
</button>
</td>
<td>
<button className="delete-btn">
<MaterialSymbol icon='delete' size={22} color='#0E2B52' />
</button>
</td>
</tr> </tr>
<tr> <tr>
<td>2</td> <td>2</td>
...@@ -44,8 +51,16 @@ const Home = () => { ...@@ -44,8 +51,16 @@ const Home = () => {
<td>ТОО “Рога и Копыта”</td> <td>ТОО “Рога и Копыта”</td>
<td>techreg.gov.kz</td> <td>techreg.gov.kz</td>
<td>заблокирован</td> <td>заблокирован</td>
<td><button className="view-btn" onClick={() => navigate("/edit")}>👁️</button></td> <td>
<td><button className="delete-btn">🗑️</button></td> <button className="view-btn" onClick={() => navigate("/edit")}>
<MaterialSymbol icon='visibility' size={20} color='#0E2B52' />
</button>
</td>
<td>
<button className="delete-btn">
<MaterialSymbol icon='delete' size={22} color='#0E2B52' />
</button>
</td>
</tr> </tr>
<tr> <tr>
<td>3</td> <td>3</td>
...@@ -54,8 +69,16 @@ const Home = () => { ...@@ -54,8 +69,16 @@ const Home = () => {
<td>ТОО “Рога и Копыта”</td> <td>ТОО “Рога и Копыта”</td>
<td>kaspi.kz</td> <td>kaspi.kz</td>
<td>удален</td> <td>удален</td>
<td><button className="view-btn" onClick={() => navigate("/edit")}>👁️</button></td> <td>
<td><button className="delete-btn">🗑️</button></td> <button className="view-btn" onClick={() => navigate("/edit")}>
<MaterialSymbol icon='visibility' size={20} color='#0E2B52' />
</button>
</td>
<td>
<button className="delete-btn">
<MaterialSymbol icon='delete' size={22} color='#0E2B52' />
</button>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
...@@ -4,7 +4,7 @@ import { Menu, Button, Drawer } from 'antd'; ...@@ -4,7 +4,7 @@ import { Menu, Button, Drawer } from 'antd';
import type { MenuProps } from 'antd'; import type { MenuProps } from 'antd';
import { MaterialSymbol } from 'react-material-symbols'; import { MaterialSymbol } from 'react-material-symbols';
import styles from './Header.module.css'; import styles from './Header.module.css';
import './drawer.css'; import './custom-drawer.css';
type MenuItem = Required<MenuProps>['items'][number]; type MenuItem = Required<MenuProps>['items'][number];
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
margin-bottom: 10px; margin-bottom: 10px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px;
} }
.add_button, .add_button,
...@@ -31,7 +32,9 @@ ...@@ -31,7 +32,9 @@
.add_title { .add_title {
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
margin-left: 2px; text-decoration: none;
font-weight: 700;
margin-left: -10px;
} }
.data { .data {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment