Skip to content

Commit

Permalink
amp now working but all tailwind styles gone #55
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinandan Arya committed Apr 24, 2021
1 parent f583b20 commit c59c061
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
5 changes: 3 additions & 2 deletions components/MedicinesCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
faPhoneAlt,
faCheckCircle,
faExclamationTriangle,
faEnvelope
faEnvelope,
faLink
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { parseDateString } from '../lib/utils';
Expand All @@ -31,7 +32,7 @@ const MedicinesCard = ({
{name}
<span>
{(verificationStatus && verificationStatus.toLocaleLowerCase()) ==
'verified' ? (
'verified' ? (
<FontAwesomeIcon
className="text-green-600 w-5 "
title="Verified"
Expand Down
28 changes: 14 additions & 14 deletions pages/[state]/[district]/medicine.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ export default function Medicine({ state, district, medicineByDistrict }) {
layout="fixed-height"
src="amp-state:medicines">
<template type="amp-mustache">
{/* <MedicinesCard
key={{ id }}
verificationStatus={{ verificationStatus }}
name={{ name }}
distributorName={{ distributorName }}
city={{ city }}
phone1={{ phone1 }}
address={{ address }}
description={{ description }}
createdTime={{ createdTime }}
slink={{ source_link }}
email={{ emailId }}
lastVerifiedOn={{ lastVerifiedOn }}
/> */}
<MedicinesCard
key={`{{ id }}`}
verificationStatus={`{{ verificationStatus }}`}
name={`{{ name }}`}
distributorName={`{{ distributorName }}`}
city={`{{ city }}`}
phone1={`{{ phone1 }}`}
address={`{{ address }}`}
description={`{{ description }}`}
createdTime={`{{ createdTime }}`}
slink={`{{ source_link }}`}
email={`{{ emailId }}`}
lastVerifiedOn={`{{ lastVerifiedOn }}`}
/>
</template>
</amp-list>
</div>
Expand Down

0 comments on commit c59c061

Please sign in to comment.