Skip to content

Commit

Permalink
Merge pull request #116 from us3r-network/dashboard-dev
Browse files Browse the repository at this point in the history
Dashboard dev
  • Loading branch information
sin-bufan authored Jun 15, 2023
2 parents 7576ee5 + 85154d3 commit b64c4f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions packages/client/dashboard/src/components/CreateNewModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ export default function CreateNewModel({
)
}
const EditorBox = styled.div`
height: calc(100vh - 88px);
/* max-height: 800px; */
height: calc(100vh - 230px);
background: #14171a;
border: 1px solid #39424c;
border-radius: 20px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { delDapp } from '../api'
export default function DelConfirmModal({
closeModal,
}: {
closeModal: () => void
closeModal: (withDel: boolean) => void
}) {
const { selectedDapp } = useSelectedDapp()
const session = useSession()
Expand All @@ -21,7 +21,7 @@ export default function DelConfirmModal({
setDelting(true)
await delDapp(selectedDapp, session.serialize())
await loadDapps()
closeModal()
closeModal(true)
} catch (error) {
console.error(error)
} finally {
Expand All @@ -41,7 +41,7 @@ export default function DelConfirmModal({
</p>
</div>
<div className="btns">
<button onClick={closeModal}>Cancel</button>
<button onClick={() => closeModal(false)}>Cancel</button>
{delting ? (
<button className="del">
<img src="/loading.gif" alt="" />
Expand Down
2 changes: 1 addition & 1 deletion packages/client/dashboard/src/components/FavoriteModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const FavoriteBox = styled.div`
flex-direction: column;
padding: 20px;
gap: 20px;
min-height: calc(100vh - 300px);
position: relative;
width: 1240px;
margin: 0 auto;
Expand Down
3 changes: 2 additions & 1 deletion packages/client/dashboard/src/container/DappInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ export default function DappInfo() {
<Dialog>
{({ close }) => (
<DelConfirmModal
closeModal={() => {
closeModal={(del) => {
close()
if (!del) return
setTimeout(() => {
navigate('/')
}, 1)
Expand Down

0 comments on commit b64c4f1

Please sign in to comment.