-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95efabb
commit 99398a9
Showing
8 changed files
with
113 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import * as Dialog from "@radix-ui/react-dialog"; | ||
import React, { useState } from "react"; | ||
|
||
import Select from "@/ui/Select"; | ||
|
||
import "./styles.css"; | ||
const selectUrl = "https://enanomapper.adma.ai/api/projects.json"; | ||
|
||
const PreferencesDialog = ({ setProjectName, projectName }) => { | ||
return ( | ||
<Dialog.Root> | ||
<Dialog.Trigger asChild> | ||
<button id="makeCopy" className="buttonMenu"> | ||
Preferences | ||
</button> | ||
</Dialog.Trigger> | ||
<Dialog.Portal> | ||
<Dialog.Overlay className="DialogOverlay" /> | ||
<Dialog.Content className="DialogContent"> | ||
<Dialog.Title className="DialogTitle">Choose Project</Dialog.Title> | ||
<Dialog.Description className="DialogDescription"> | ||
You can choose your project. | ||
<br /> | ||
</Dialog.Description> | ||
|
||
<Select | ||
url={selectUrl} | ||
setProjectName={setProjectName} | ||
projectName={projectName} | ||
/> | ||
|
||
<div | ||
style={{ | ||
display: "flex", | ||
marginTop: 25, | ||
justifyContent: "flex-end", | ||
}} | ||
> | ||
<Dialog.Close asChild> | ||
<button className="Button">Ok</button> | ||
</Dialog.Close> | ||
</div> | ||
</Dialog.Content> | ||
</Dialog.Portal> | ||
</Dialog.Root> | ||
); | ||
}; | ||
|
||
export default PreferencesDialog; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
|
||
export default function CloseIcon() { | ||
return ( | ||
<svg | ||
width="11" | ||
height="11" | ||
viewBox="0 0 11 11" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path d="M1 10L9.99999 1.00001" stroke="#ccc" strokeWidth="2" /> | ||
<path d="M1 1L9.99999 9.99999" stroke="#ccc" strokeWidth="2" /> | ||
</svg> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,3 +75,9 @@ | |
gap: 16px; | ||
align-items: center; | ||
} | ||
|
||
.projectPromt { | ||
font-size: 13px; | ||
color: #ea5252; | ||
font-weight: 500; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.