-
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
Showing
21 changed files
with
555 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from "react"; | ||
|
||
function BackArrow() { | ||
return ( | ||
<span className={"rotate-90 transition-transform"}> | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<rect | ||
x="15.5564" | ||
y="7.77817" | ||
width="2" | ||
height="11" | ||
transform="rotate(135 15.5564 7.77817)" | ||
fill="#8D8D8D" | ||
/> | ||
<rect | ||
x="14.1422" | ||
y="6.36395" | ||
width="2" | ||
height="11" | ||
transform="rotate(45 14.1422 6.36395)" | ||
fill="#8D8D8D" | ||
/> | ||
</svg> | ||
</span> | ||
); | ||
} | ||
|
||
export default BackArrow; |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from "react"; | ||
|
||
export default function SearchIcon() { | ||
return ( | ||
<svg | ||
width="20" | ||
height="19" | ||
viewBox="0 0 30 29" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<circle | ||
cx="10.0036" | ||
cy="10.0036" | ||
r="9.00362" | ||
transform="matrix(0.707771 0.706442 -0.706954 0.70726 14.144 0)" | ||
stroke="#676767" | ||
strokeWidth="2" | ||
/> | ||
<rect | ||
width="11.004" | ||
height="2.00072" | ||
transform="matrix(0.707771 0.706442 -0.706954 0.70726 21.2314 19.7949)" | ||
fill="#676767" | ||
/> | ||
</svg> | ||
); | ||
} |
Oops, something went wrong.