Skip to content

Commit

Permalink
Feat/single-click-submit-events (#808)
Browse files Browse the repository at this point in the history
* removed pages and changed the menu

* switch indexer

* added missing replace REPL_DEVHUB with devhub.near templates

* update category front end

* update logo banner text and colors

* Edit admin and about page, remove footer

* about page

* remove restricted labels tab

* edit members button different color

* change package.json and replacements.mainnet.json

* added labels support

* remove log

* remove track visits

* fix minor bugs

* removed request sponsor field from proposal UI

* add labels to feed

* skip tests unrelated to events-committee portal

* fix last bugs events committee

* update tests

* fix search by labels

* replicated decision stage from commit e47854b

* updated indexer

* fix loading with 0 proposals

* fix: dont ask me again

* fmt

* rebase with devhub main

* scroll author container in feed page

* add labels in logs

* feat: github action to deploy events-committee

* fmt

* test: fix admin spec

* feat: single click submit

---------

Co-authored-by: Megha-Dev-19 <[email protected]>
  • Loading branch information
Tguntenaar and Megha-Dev-19 authored Jun 3, 2024
1 parent 63a8b02 commit 192e682
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
12 changes: 0 additions & 12 deletions src/devhub/components/templates/AppLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ const AppHeader = ({ page }) => (
/>
);

const Footer = (props) => {
return (
<Widget
src="${REPL_DEVHUB}/widget/devhub.components.organism.NewsLetter"
props={{
...props,
}}
/>
);
};

function AppLayout({ page, children }) {
return (
<ParentContainer>
Expand All @@ -66,7 +55,6 @@ function AppLayout({ page, children }) {
<ContentContainer className="container-xl">
{children}
</ContentContainer>
{/* <Footer page={page} /> */}
</Container>
</Theme>
</ParentContainer>
Expand Down
7 changes: 4 additions & 3 deletions src/devhub/entity/proposal/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -637,14 +637,15 @@ const SubmitBtn = () => {
const handleOptionClick = (option) => {
setDraftBtnOpen(false);
setSelectedStatus(option.value);
handleSubmit(option.value);
};

const toggleDropdown = () => {
setDraftBtnOpen(!isDraftBtnOpen);
};

const handleSubmit = () => {
const isDraft = selectedStatus === "draft";
const handleSubmit = (status) => {
const isDraft = status === "draft";
if (isDraft) {
onSubmit({ isDraft });
cleanDraft();
Expand All @@ -669,7 +670,7 @@ const SubmitBtn = () => {
}
>
<div
onClick={() => !disabledSubmitBtn && handleSubmit()}
onClick={() => !disabledSubmitBtn && handleSubmit(selectedStatus)}
className="p-2 d-flex gap-2 align-items-center "
>
{isTxnCreated ? (
Expand Down

0 comments on commit 192e682

Please sign in to comment.