parent
03bc98379a
commit
bc0046172b
9 changed files with 211 additions and 173 deletions
@ -1,3 +0,0 @@ |
|||||||
import { createBrowserHistory } from "history"; |
|
||||||
|
|
||||||
export default createBrowserHistory(); |
|
@ -1,23 +1,25 @@ |
|||||||
textarea { |
.material-modal { |
||||||
width: 100%; |
textarea { |
||||||
font-family: numeralLight; |
width: 100%; |
||||||
border-radius: 10px; |
font-family: numeralLight; |
||||||
border: 1px solid #c4c4c5; |
border-radius: 10px; |
||||||
padding: 10px 8px; |
border: 1px solid #c4c4c5; |
||||||
color: #6f7074; |
padding: 10px 8px; |
||||||
&::placeholder { |
color: #6f7074; |
||||||
color: #797979; |
&::placeholder { |
||||||
|
color: #797979; |
||||||
|
} |
||||||
|
&:focus { |
||||||
|
outline: 0px; |
||||||
|
} |
||||||
} |
} |
||||||
&:focus { |
|
||||||
outline: 0px; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
button { |
button { |
||||||
width: 100%; |
width: 100%; |
||||||
font-family: numeralLight; |
font-family: numeralLight; |
||||||
background-color: #00cc69; |
background-color: #00cc69; |
||||||
color: white; |
color: white; |
||||||
border: 0px; |
border: 0px; |
||||||
margin-top: 20px; |
margin-top: 20px; |
||||||
|
} |
||||||
} |
} |
||||||
|
@ -1,21 +1,36 @@ |
|||||||
import React from 'react'; |
import React from "react"; |
||||||
|
|
||||||
import AppliedFiltesrs from './AppliedFilters/index'; |
import AppliedFiltesrs from "./AppliedFilters/index"; |
||||||
import TypicalFilters from './TypicalFilters/index'; |
import TypicalFilters from "./TypicalFilters/index"; |
||||||
|
|
||||||
import './index.scss'; |
import "./index.scss"; |
||||||
export default class Filtesrs extends React.Component { |
export default class Filtesrs extends React.Component { |
||||||
render() { |
render() { |
||||||
const {parent} = this.props; |
const { parent } = this.props; |
||||||
return( |
return ( |
||||||
<div className="products-filters d-flex flex-column"> |
<div className="products-filters d-flex flex-column"> |
||||||
{ |
{parent.state.selectedFilters.level.length !== 0 || |
||||||
parent.state.selectedFilters.level.length !== 0 || parent.state.selectedFilters.subject.length !== 0 ? |
parent.state.selectedFilters.subject.length !== 0 ? ( |
||||||
<AppliedFiltesrs parent={parent} data={parent.state.selectedFilters} />: null |
<AppliedFiltesrs |
||||||
} |
parent={parent} |
||||||
<TypicalFilters name ="subject" parent={parent} data={parent.props.subjects} title="دسته بندی موضوعی" theme="#D7FF17" /> |
data={parent.state.selectedFilters} |
||||||
<TypicalFilters name="level" parent={parent} data={parent.props.levels} title="پایه تحصیلی" theme="#FF8917" /> |
/> |
||||||
|
) : null} |
||||||
|
<TypicalFilters |
||||||
|
name="subject" |
||||||
|
parent={parent} |
||||||
|
data={parent.props.subjects} |
||||||
|
title="دسته بندی موضوعی" |
||||||
|
theme="#D7FF17" |
||||||
|
/> |
||||||
|
<TypicalFilters |
||||||
|
name="level" |
||||||
|
parent={parent} |
||||||
|
data={parent.props.levels} |
||||||
|
title="پایه تحصیلی" |
||||||
|
theme="#FF8917" |
||||||
|
/> |
||||||
</div> |
</div> |
||||||
); |
); |
||||||
} |
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue