chore: erabiltzen ez den konponentea kentzen du
This commit is contained in:
@@ -5,7 +5,6 @@ import { KafetegiaContent } from '../../domain/kafetegia/KafetegiaContent';
|
|||||||
import { Container } from '../components/Container';
|
import { Container } from '../components/Container';
|
||||||
import { Gainburua } from '../components/Gainburua';
|
import { Gainburua } from '../components/Gainburua';
|
||||||
import { Oina } from '../components/Oina';
|
import { Oina } from '../components/Oina';
|
||||||
import { AlergenoLegenda } from './components/AlergenoLegenda';
|
|
||||||
import { ProduktuZerrenda } from './components/ProduktuZerrenda';
|
import { ProduktuZerrenda } from './components/ProduktuZerrenda';
|
||||||
import * as styles from './Kafetegia.module.scss';
|
import * as styles from './Kafetegia.module.scss';
|
||||||
|
|
||||||
@@ -14,9 +13,9 @@ export const Kafetegia: React.FC<{ content: KafetegiaContent }> = ({
|
|||||||
}) => {
|
}) => {
|
||||||
const { izenburua, deskribapena, menua } = content;
|
const { izenburua, deskribapena, menua } = content;
|
||||||
|
|
||||||
// oraingoz menuak alergenorik ez duenez, ezkutatuko dugu
|
// oraingoz menuak alergenorik ez duenez, alergeno legenda ezkutatuko dugu.
|
||||||
// TODO modu dinamikoan aldatu balio hau
|
// AlergenoLegenda konponentea sortuta dago, baina ez dugu erabiltzen
|
||||||
const hasAlergenoak = false;
|
// performance arrazoiengatik
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -59,17 +58,6 @@ export const Kafetegia: React.FC<{ content: KafetegiaContent }> = ({
|
|||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
|
|
||||||
{hasAlergenoak && (
|
|
||||||
<section className={styles.taldeWrapper}>
|
|
||||||
<div className={styles.izenburuWrapper}>
|
|
||||||
<div className={styles.marra} />
|
|
||||||
<h1 className={styles.izenburua}>Alergenoak</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<AlergenoLegenda />
|
|
||||||
</section>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<p className={styles.onEgin}>On egin!</p>
|
<p className={styles.onEgin}>On egin!</p>
|
||||||
</Container>
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user