From c1600045a243e3547fe589bfc7e474d2decaea4c Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Mon, 13 Sep 2021 17:26:09 +0530 Subject: moved interfaces to new folder --- src/components/Print/Print.scss | 13 ------------ src/components/Print/PrintableDoc.tsx | 40 ----------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 src/components/Print/Print.scss delete mode 100644 src/components/Print/PrintableDoc.tsx (limited to 'src/components/Print') diff --git a/src/components/Print/Print.scss b/src/components/Print/Print.scss deleted file mode 100644 index bae5f76..0000000 --- a/src/components/Print/Print.scss +++ /dev/null @@ -1,13 +0,0 @@ -@import "../../styles/theme"; - -.PDFViewer { - height: 95%; - width: 95%; - border: 2px solid $border0; - - position: fixed; - top: 0; bottom: 0; - left: 0; right: 0; - margin: auto; - z-index: 3; -} diff --git a/src/components/Print/PrintableDoc.tsx b/src/components/Print/PrintableDoc.tsx deleted file mode 100644 index 67c8580..0000000 --- a/src/components/Print/PrintableDoc.tsx +++ /dev/null @@ -1,40 +0,0 @@ -/* - * OpenBills - Self hosted browser app to generate and keep track of simple invoices - * Version - 0 - * Licensed under the MIT license - https://opensource.org/licenses/MIT - * - * Copyright (c) 2021 Vidhu Kant Sharma -*/ - -import React, { /*useState,*/ } from "react"; -import "./Print.scss"; -import { Page, Text, View, Document, StyleSheet } from '@react-pdf/renderer'; - -const styles = StyleSheet.create({ - page: { - flexDirection: 'row', - backgroundColor: '#E4E4E4' - }, - section: { - margin: 10, - padding: 10, - flexGrow: 1 - } -}); - -const PrintableDoc: React.FC = () => { - return ( - - - - Section #1 - - - Section #2 - - - - ); -} - -export default PrintableDoc; -- cgit v1.2.3