Skip to content

Commit

Permalink
worked on the smart contracts and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alirazacodes committed Dec 29, 2021
1 parent 23a0f4a commit 90668d7
Show file tree
Hide file tree
Showing 3,307 changed files with 652 additions and 259,008 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"static/chunks/webpack.js",
"static/chunks/pages/admin/dashboard.js"
],
"/admin/profile": [
"/auth/login": [
"static/chunks/main.js",
"static/chunks/webpack.js",
"static/chunks/pages/admin/profile.js"
"static/chunks/pages/auth/login.js"
]
},
"ampFirstPages": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"/_app": "pages/_app.js",
"/_document": "pages/_document.js",
"/_error": "pages/_error.js",
"/admin/profile": "pages/admin/profile.js",
"/auth/login": "pages/auth/login.js",
"/admin/dashboard": "pages/admin/dashboard.js"
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
/******/
/******/ var hotApplyOnUpdate = true;
/******/ // eslint-disable-next-line no-unused-vars
/******/ var hotCurrentHash = "5035f7a5ac293dc551fa";
/******/ var hotCurrentHash = "41907700d58b91a06f2f";
/******/ var hotRequestTimeout = 10000;
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentChildModule;
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,27 @@ import React from "react";
// reactstrap components
import { Spinner } from "reactstrap";

import logo from "./Amortize-load2.gif";


// core components

export default function PageChange(props) {
return (
<div>
<div className="page-transition-wrapper-div">
<img src={logo} alt="loading..." />
{/* <div className="page-transition-wrapper-div">
<div className="page-transition-icon-wrapper mb-3">
<Spinner
color="white"
style={{ width: "6rem", height: "6rem", borderWidth: ".3rem" }}
/>
</div>
<h4 className="title text-white">
Loading page contents for: {props.path}
</h4>
</div>
</div> */}
</div>
);
}
179 changes: 179 additions & 0 deletions Front-End/nextjs-argon-dashboard-master/pages/admin/agent-select 2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
import React from "react";
import { myStxAddress } from "../../components/auth";

import { useState } from "react";

// import { Dropdown } from "react-bootstrap";

// import { Dropdown, Selection } from 'react-dropdown-now';
// import 'react-dropdown-now/style.css';

// import Dropdown from 'react-dropdown';
// import 'react-dropdown/style.css';

// reactstrap components
import {
Button,
Card,
CardHeader,
CardBody,
FormGroup,
Form,
Input,
Container,
Row,
Col,
} from "reactstrap";
// layout for this page
import Admin from "layouts/Admin.js";
// core components
import UserHeader from "components/Headers/UserHeader.js";

function Profile() {

const [state, setState] = useState({
AgentName: "",
PropID: ""
})

// let submitted = false;

const handleChange = evt => {
const name = evt.target.name;
const value = evt.target.value;
setState({
...state,
[name]: value
})
}

const handleSubmit = (e) => {
// submitted = true;
e.preventDefault()
console.log(state);
};

const agents = ["Ali", "Ummar", "James"];

// const dropdown = {
// color: 'white',
// FontFace:
// };

return (
<>
<UserHeader />
{/* Page content */}
<Container className="mt--7" fluid>
<Row>

<Col className="order-xl-1" xl="12">
<Card className="bg-secondary shadow">
<CardHeader className="bg-white border-0">
<Row className="align-items-center">
<Col xs="8">
<h3 className="mb-0">Selecting Agent</h3>
</Col>

</Row>
</CardHeader>
<CardBody>
<Form>
<h6 className="heading-small text-muted mb-4">
Selecting Agent before minting
</h6>
<div className="pl-lg-4">
<Row>
<Col lg="9">
<FormGroup>


<label
className="form-control-label"
htmlFor="input-username"
>
Agent Name
</label>
<Row>
{/* <Col lg="12">
<Input
className="form-control-alternative"
id="input-username"
placeholder="Enter name of agent whom to transfer the rights of the property"
type="text"
name="Username"
onChange={handleChange}
/>
</Col> */}
<Col lg="12">
<select style={{ width: "100%", }} name="AgentName" onChange={handleChange}>
<option value="" disabled selected>Select name of agent whom to transfer the rights of the property</option>
{/* <option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option> */}
{agents.map(agent =>
<option value={agent}>{agent}</option>
)}


</select>
</Col>
</Row>
</FormGroup>
</Col>
{/* <Col lg="8">
<select name="cars" id="input" className="form-control-alternative">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
</Col> */}
<Col lg="6">
<FormGroup>
<label
className="form-control-label"
htmlFor="input-email"
>
ID of Property/Equity
</label>

<Col lg="13">
<select style={{ width: "100%", }} name="PropID" onChange={handleChange}>
<option value="" disabled selected>PROP-12345</option>
{agents.map(agent =>
<option value={agent}>{agent}</option>
)}
</select>
</Col>
</FormGroup>
</Col>
</Row>
<Row>
<Col className="text-right" xs="10">
<Button
color="primary"
href="#pablo"
onClick={handleSubmit}
size="sm"
>
MINT!
</Button>
</Col>
</Row>

</div>

</Form>
</CardBody>
</Card>
</Col>
</Row>
</Container>
</>
);
}

Profile.layout = Admin;

export default Profile;
Loading

0 comments on commit 90668d7

Please sign in to comment.