mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 04:52:07 +00:00
* init * fix tables * add shortcuts * handle svgs * test * test2 * test3 * Update loggers.py * Update sdk_helpers.py * Update loggers.py * Update loggers.py * updates * updates * update * handle add text high/low for candlestick traces when updating * adding save overlay to tables * maybe fix * prints * asdf * working * working * removing prints * update * fix no figure title text * add trace labels space * download finished popup for MacOS * bump pywry * update * update table * Update plotly_helper.py * only format numbers over 10_000 on tables * Delete generate_index.py * turn off logs in generations * update tables * bump pywry, fix tables, added ichimoku ta indicator * Update backend.py * mypy * update tables * updates * juan more * tables * test * bump pywry * bump pywry * Update loggers.py * test * fixing some formatting * add update button to indicators dashboard * fix oecd dates to be full dates * prepare charts/tables for pywry update * Update poetry.lock * Update finviz_view.py * tests * tests * tests * tests * testss? * tests * Create test_call_func[call_sec-nasdaq_view.sec_filings-other_args37-called_with37].yaml * testtss please * Update loggers.py * testss * `with open(newline="\n")` * tests * tests -__- * why * Revert "`with open(newline="\n")`" This reverts commit554e0f53f4. * Revert "why" This reverts commit89f1d9b823. * Revert "tests -__-" This reverts commita9c694ae96. * Revert "tests" This reverts commit5463249498. * whelp * . * rename `streamlit.py` -> `streamlit_run.py`, bump pywry/finviz/streamlit * Update backend.py * update * Revert "update file" --------- Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com> Co-authored-by: James Maslek <jmaslek11@gmail.com>
44 lines
1.2 KiB
TypeScript
Vendored
44 lines
1.2 KiB
TypeScript
Vendored
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
import CloseIcon from "../Icons/Close";
|
|
import { ReactNode } from "react";
|
|
|
|
export const styleDialog = {
|
|
margin: "2px 0px 2px 10px",
|
|
padding: "5px 2px 2px 5px",
|
|
};
|
|
|
|
export default function CommonDialog({
|
|
open,
|
|
close,
|
|
title,
|
|
description,
|
|
children,
|
|
}: {
|
|
open: boolean;
|
|
close: () => void;
|
|
title: string;
|
|
description: string;
|
|
children: ReactNode;
|
|
}) {
|
|
return (
|
|
<DialogPrimitive.Root open={open} onOpenChange={close}>
|
|
<DialogPrimitive.Overlay onClick={close} className="_modal-overlay" />
|
|
<DialogPrimitive.Content className="_modal">
|
|
<DialogPrimitive.Title className="_modal-title">
|
|
{title}
|
|
</DialogPrimitive.Title>
|
|
<DialogPrimitive.Description className="_modal_description">
|
|
{description}
|
|
</DialogPrimitive.Description>
|
|
<DialogPrimitive.Close>
|
|
<CloseIcon />
|
|
</DialogPrimitive.Close>
|
|
{children}
|
|
<DialogPrimitive.Close className="_modal-close" onClick={close}>
|
|
<CloseIcon className="w-6 h-6" />
|
|
</DialogPrimitive.Close>
|
|
</DialogPrimitive.Content>
|
|
</DialogPrimitive.Root>
|
|
);
|
|
}
|