|
|
@ -1,4 +1,5 @@ |
|
|
|
import React from "react"; |
|
|
|
import React, { useState } from "react"; |
|
|
|
|
|
|
|
import './index.css'; |
|
|
|
|
|
|
|
|
|
|
|
const persian = { |
|
|
|
const persian = { |
|
|
|
weight: "وزن", |
|
|
|
weight: "وزن", |
|
|
@ -12,17 +13,18 @@ const persian = { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const Table = ({ specifications }) => { |
|
|
|
const Table = ({ specifications }) => { |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<ul className="w-full"> |
|
|
|
<ul className={`w-full`} > |
|
|
|
{Object.keys(specifications).map((specification, index) => ( |
|
|
|
{Object.keys(specifications).map((specification, index) => ( |
|
|
|
<li className="flex my-3"> |
|
|
|
<li className={`flex my-3 cursor-pointer specifications-li`} > |
|
|
|
<div |
|
|
|
<div |
|
|
|
className="bg-grayF9 rounded p-3 ml-2 text-blue-600 text-sm" |
|
|
|
className={` bg-grayF9 rounded p-3 ml-2 text-blue-600 text-sm`} |
|
|
|
style={{ flex: 2 }} |
|
|
|
style={{ flex: 2 }} |
|
|
|
> |
|
|
|
> |
|
|
|
{persian[specification]} |
|
|
|
{persian[specification]} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="bg-grayF9 rounded p-3 text-sm" style={{ flex: 8 }}> |
|
|
|
<div className={`bg-grayF9 rounded p-3 text-sm`} style={{ flex: 8 }}> |
|
|
|
{specifications[specification]} |
|
|
|
{specifications[specification]} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|