Skip to content

Commit

Permalink
Revert "feature: history component for warranty transactions (#6)" (#9)
Browse files Browse the repository at this point in the history
* Revert "feature: history component for warranty transactions (#6)"

This reverts commit 8a5e5bf.

* Update styles/components/warrantyPage.module.scss

Co-authored-by: DecFox <[email protected]>

Co-authored-by: DecFox <[email protected]>
  • Loading branch information
adnanhashmi09 and DecFox authored Oct 22, 2022
1 parent 8a5e5bf commit 6b59645
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 151 deletions.
46 changes: 0 additions & 46 deletions components/tables/Table.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions pages/mocks/MockWarranty.json

This file was deleted.

20 changes: 0 additions & 20 deletions pages/warranty/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,15 @@ import styles from '../../styles/components/warrantyPage.module.scss';
import Meta from '../../components/utils/Meta';
import Image from 'next/image';
import Button from '../../components/reusables/Button';
import Table from '../../components/tables/Table';
import { useState } from 'react';

// mock data
import MockWarranty from '../mocks/MockWarranty.json';

// variables / constants

const mockWarranty = MockWarranty

const warrantyHistory = {
"event": "Event",
"to": "To",
"from": "From",
"date": "Date",
"txn": "Transaction"
}

const meta = {
title: 'Warranty Card',
description: 'Warranty Card for your product.',
};

const WarrantyCard: NextPage = () => {
const [warranty, setWarranty] = useState<any>(mockWarranty)

return (
<>
<Meta {...meta} />
Expand Down Expand Up @@ -79,9 +62,6 @@ const WarrantyCard: NextPage = () => {
</Button>
</div>
</div>
<div className={styles.top__table}>
<Table headers={warrantyHistory} data={warranty.history} />
</div>
</div>
</>
);
Expand Down
39 changes: 0 additions & 39 deletions styles/components/TableGeneric.module.scss

This file was deleted.

11 changes: 1 addition & 10 deletions styles/components/warrantyPage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@
}
}
}

&__table {
width: 100vw;
display: flex;
justify-content: center;
margin: 3rem 0 5rem 0;
@include media('>=mindesk') {
width: 100%;
}
}
// sample review comment
}
}

0 comments on commit 6b59645

Please sign in to comment.