Skip to content

Commit

Permalink
Updated bulk upload to add validation with forms
Browse files Browse the repository at this point in the history
  • Loading branch information
umerfaruk committed Mar 17, 2024
1 parent f723e16 commit 65ac886
Show file tree
Hide file tree
Showing 4 changed files with 182 additions and 165 deletions.
18 changes: 9 additions & 9 deletions src/components/layout/contentContainer.jsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
// 3rd party libraries
import { theme } from "antd";
import { theme } from "antd";

// Local imports
import styles from '../../styles/common.module.scss'

// -----------------------------------------
// -----------------------------------------

function ContentsContainer({ children }) {
const {
token: { colorBgContainer, borderRadius },
} = theme.useToken();

return (<div
className={styles.container}
style={{
background: colorBgContainer,
borderRadius : borderRadius
}}>
{children}
</div>);
className={styles.container}
style={{
background: colorBgContainer,
borderRadius: borderRadius
}}>
{children}
</div>);
}

export default ContentsContainer;
2 changes: 1 addition & 1 deletion src/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const en = {
upload: {
label: "Upload",
title: "Upload Books",
book_number: "Book {{index}}",
defaultProperties: "Default Properties",
message: "Click or drag file to this area to upload",
empty: "No books selected for upload. Please Click or drag file to above area to upload",
success: "Books uploaded successfully.",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/ur.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ const ur = {
upload: {
label: "اپلوڈ",
title: "کتب اپلوڈ",
book_number: "کتاب {{index}}",
defaultProperties: "بنیادی خصوصیات",
message: "کلک یا ڈریگ کر کے کتاب کی فائل چُنیں۔",
empty: "کوئی کتاب موجود نہیں۔ اوپر کلک یا ڈریگ کر کے کتاب کی فائل چُنیں۔",
success: "کتب کامیابی سے اپلوڈ کر دی گئی ہیں۔",
Expand Down
Loading

0 comments on commit 65ac886

Please sign in to comment.