Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "feature: history component for warranty transactions (#6)" #9

Merged
merged 2 commits into from
Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
}
}
}
adnanhashmi09 marked this conversation as resolved.
Show resolved Hide resolved

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