Skip to content

Commit 37c4574

Browse files
committed
feat: refactor for creation modal
1 parent ec623a6 commit 37c4574

36 files changed

+2518
-909
lines changed

apps/frontend/src/app/colors.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
:root {
22
.dark {
3+
--new-back-drop: #000;
4+
--new-settings: #242323;
5+
--new-border: #252525;
36
--new-bgColor: #0e0e0e;
47
--new-bgColorInner: #1a1919;
8+
--new-sep: #454444;
59
--new-bgLineColor: #212121;
610
--new-textItemFocused: #1a1919;
711
--new-textItemBlur: #999999;
@@ -26,6 +30,10 @@
2630
--popup-color: rgba(65, 64, 66, 0.3);
2731
}
2832
.light {
33+
--new-back-drop: #2d1b57;
34+
--new-settings: #ECEEF1;
35+
--new-sep: #D5D9DD;
36+
--new-border: #EAECEE;
2937
--new-bgColor: #f0f2f4;
3038
--new-bgColorInner: #ffffff;
3139
--new-bgLineColor: #e7e9eb;

apps/frontend/src/app/global.scss

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,9 @@ html[dir='rtl'] [dir='ltr'] {
679679
.blur-xs {
680680
filter: blur(4px);
681681
}
682+
.blur-s {
683+
filter: blur(5px);
684+
}
682685

683686
.agent {
684687
.copilotKitInputContainer {
@@ -736,7 +739,45 @@ html[dir='rtl'] [dir='ltr'] {
736739
background: transparent !important;
737740
}
738741

739-
//html body iframe[title="Stripe developer tools frame"] {
740-
// display: none !important;
741-
// height: 0 !important;
742-
//}
742+
.menu-shadow {
743+
border-radius: 12px;
744+
box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.5);
745+
}
746+
747+
.post-now {
748+
box-shadow: -33px 57px 18px 0 rgba(0, 0, 0, 0.01), -21px 36px 17px 0 rgba(0, 0, 0, 0.06), -12px 20px 14px 0 rgba(0, 0, 0, 0.20), -5px 9px 11px 0 rgba(0, 0, 0, 0.34), -1px 2px 6px 0 rgba(0, 0, 0, 0.39);
749+
}
750+
751+
.uppyChange .uppy-Dashboard-inner {
752+
width: 100% !important;
753+
}
754+
755+
.btnSub:disabled .arrow-change {
756+
display: none !important;
757+
}
758+
.btnSub:disabled + button {
759+
display: none !important;
760+
}
761+
762+
.tiptap p.is-editor-empty:first-child::before {
763+
color: #adb5bd;
764+
content: attr(data-placeholder);
765+
float: left;
766+
height: 0;
767+
pointer-events: none;
768+
}
769+
770+
.w8-max {
771+
width: calc(100% / 6);
772+
max-width: calc(100% / 6);
773+
}
774+
775+
.withp3 {
776+
width: calc(100% + 9px);
777+
height: calc(100% + 6px);
778+
}
779+
780+
.forceChange .changeColor {
781+
background: var(--new-btn-primary) !important;
782+
color: #fff !important;
783+
}

apps/frontend/src/components/launches/ai.image.tsx

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const AiImage: FC<{
2828
const t = useT();
2929
const { value, onChange } = props;
3030
const [loading, setLoading] = useState(false);
31-
const setLocked = useLaunchStore(p => p.setLocked);
31+
const setLocked = useLaunchStore((p) => p.setLocked);
3232
const fetch = useFetch();
3333
const generateImage = useCallback(
3434
(type: string) => async () => {
@@ -59,7 +59,7 @@ ${type}
5959
);
6060
return (
6161
<div className="relative group">
62-
<Button
62+
<div
6363
{...(value.length < 30
6464
? {
6565
'data-tooltip-id': 'tooltip',
@@ -68,13 +68,13 @@ ${type}
6868
}
6969
: {})}
7070
className={clsx(
71-
'relative ms-[10px] rounded-[4px] gap-[8px] !text-primary justify-center items-center flex border border-dashed border-newBgLineColor bg-newColColor',
72-
value.length < 30 && 'opacity-25'
71+
'cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]',
72+
value.length < 30 && 'opacity-50'
7373
)}
7474
>
7575
{loading && (
7676
<div className="absolute start-[50%] -translate-x-[50%]">
77-
<Loading height={30} width={30} type="spin" color="#fff" />
77+
<Loading height={15} width={15} type="spin" color="#fff" />
7878
</div>
7979
)}
8080
<div
@@ -86,24 +86,32 @@ ${type}
8686
<div>
8787
<svg
8888
xmlns="http://www.w3.org/2000/svg"
89-
width="24"
90-
height="24"
91-
viewBox="0 0 24 24"
89+
width="16"
90+
height="16"
91+
viewBox="0 0 16 16"
9292
fill="none"
9393
>
94-
<path
95-
d="M19.5 3H7.5C7.10218 3 6.72064 3.15804 6.43934 3.43934C6.15804 3.72064 6 4.10218 6 4.5V6H4.5C4.10218 6 3.72064 6.15804 3.43934 6.43934C3.15804 6.72064 3 7.10218 3 7.5V19.5C3 19.8978 3.15804 20.2794 3.43934 20.5607C3.72064 20.842 4.10218 21 4.5 21H16.5C16.8978 21 17.2794 20.842 17.5607 20.5607C17.842 20.2794 18 19.8978 18 19.5V18H19.5C19.8978 18 20.2794 17.842 20.5607 17.5607C20.842 17.2794 21 16.8978 21 16.5V4.5C21 4.10218 20.842 3.72064 20.5607 3.43934C20.2794 3.15804 19.8978 3 19.5 3ZM7.5 4.5H19.5V11.0044L17.9344 9.43875C17.6531 9.15766 17.2717 8.99976 16.8741 8.99976C16.4764 8.99976 16.095 9.15766 15.8137 9.43875L8.75344 16.5H7.5V4.5ZM16.5 19.5H4.5V7.5H6V16.5C6 16.8978 6.15804 17.2794 6.43934 17.5607C6.72064 17.842 7.10218 18 7.5 18H16.5V19.5ZM19.5 16.5H10.875L16.875 10.5L19.5 13.125V16.5ZM11.25 10.5C11.695 10.5 12.13 10.368 12.5 10.1208C12.87 9.87357 13.1584 9.52217 13.3287 9.11104C13.499 8.6999 13.5436 8.2475 13.4568 7.81105C13.37 7.37459 13.1557 6.97368 12.841 6.65901C12.5263 6.34434 12.1254 6.13005 11.689 6.04323C11.2525 5.95642 10.8001 6.00097 10.389 6.17127C9.97783 6.34157 9.62643 6.62996 9.37919 6.99997C9.13196 7.36998 9 7.80499 9 8.25C9 8.84674 9.23705 9.41903 9.65901 9.84099C10.081 10.2629 10.6533 10.5 11.25 10.5ZM11.25 7.5C11.3983 7.5 11.5433 7.54399 11.6667 7.6264C11.79 7.70881 11.8861 7.82594 11.9429 7.96299C11.9997 8.10003 12.0145 8.25083 11.9856 8.39632C11.9566 8.5418 11.8852 8.67544 11.7803 8.78033C11.6754 8.88522 11.5418 8.95665 11.3963 8.98559C11.2508 9.01453 11.1 8.99968 10.963 8.94291C10.8259 8.88614 10.7088 8.79001 10.6264 8.66668C10.544 8.54334 10.5 8.39834 10.5 8.25C10.5 8.05109 10.579 7.86032 10.7197 7.71967C10.8603 7.57902 11.0511 7.5 11.25 7.5Z"
96-
fill="currentColor"
97-
/>
94+
<g clip-path="url(#clip0_2352_53053)">
95+
<path
96+
d="M8.33333 2.00033H5.2C4.07989 2.00033 3.51984 2.00033 3.09202 2.21831C2.71569 2.41006 2.40973 2.71602 2.21799 3.09234C2 3.52017 2 4.08022 2 5.20032V10.8003C2 11.9204 2 12.4805 2.21799 12.9083C2.40973 13.2846 2.71569 13.5906 3.09202 13.7823C3.51984 14.0003 4.07989 14.0003 5.2 14.0003H11.3333C11.9533 14.0003 12.2633 14.0003 12.5176 13.9322C13.2078 13.7472 13.7469 13.2081 13.9319 12.518C14 12.2636 14 11.9536 14 11.3337M7 5.66699C7 6.40337 6.40305 7.00033 5.66667 7.00033C4.93029 7.00033 4.33333 6.40337 4.33333 5.66699C4.33333 4.93061 4.93029 4.33366 5.66667 4.33366C6.40305 4.33366 7 4.93061 7 5.66699ZM9.99336 7.94576L4.3541 13.0724C4.03691 13.3607 3.87831 13.5049 3.86429 13.6298C3.85213 13.738 3.89364 13.8454 3.97546 13.9173C4.06985 14.0003 4.28419 14.0003 4.71286 14.0003H10.9707C11.9301 14.0003 12.4098 14.0003 12.7866 13.8391C13.2596 13.6368 13.6365 13.2599 13.8388 12.7869C14 12.4101 14 11.9304 14 10.971C14 10.6482 14 10.4867 13.9647 10.3364C13.9204 10.1475 13.8353 9.97056 13.7155 9.81792C13.6202 9.69646 13.4941 9.59562 13.242 9.39396L11.3772 7.9021C11.1249 7.70026 10.9988 7.59935 10.8599 7.56373C10.7374 7.53234 10.6086 7.53641 10.4884 7.57545C10.352 7.61975 10.2324 7.72842 9.99336 7.94576ZM13 1.01074L12.5932 1.82425C12.4556 2.09958 12.3868 2.23724 12.2948 2.35653C12.2132 2.46238 12.1183 2.55728 12.0125 2.63887C11.8932 2.73083 11.7555 2.79966 11.4802 2.93732L10.6667 3.34408L11.4802 3.75083C11.7555 3.88849 11.8932 3.95732 12.0125 4.04928C12.1183 4.13087 12.2132 4.22577 12.2948 4.33162C12.3868 4.45091 12.4556 4.58857 12.5932 4.8639L13 5.67741L13.4068 4.8639C13.5444 4.58857 13.6132 4.45091 13.7052 4.33162C13.7868 4.22577 13.8817 4.13087 13.9875 4.04928C14.1068 3.95732 14.2445 3.88849 14.5198 3.75083L15.3333 3.34408L14.5198 2.93732C14.2445 2.79966 14.1068 2.73083 13.9875 2.63887C13.8817 2.55728 13.7868 2.46238 13.7052 2.35653C13.6132 2.23724 13.5444 2.09958 13.4068 1.82425L13 1.01074Z"
97+
stroke="currentColor"
98+
strokeWidth="1.2"
99+
strokeLinecap="round"
100+
strokeLinejoin="round"
101+
/>
102+
</g>
103+
<defs>
104+
<clipPath id="clip0_2352_53053">
105+
<rect width="16" height="16" fill="currentColor" />
106+
</clipPath>
107+
</defs>
98108
</svg>
99109
</div>
100-
<div className="text-[12px] font-[500] !text-current">
101-
{t('ai', 'AI')} Image
102-
</div>
110+
<div className="text-[10px] font-[600] iconBreak:hidden block">{t('ai', 'AI')} Image</div>
103111
</div>
104-
</Button>
112+
</div>
105113
{value.length >= 30 && !loading && (
106-
<div className="text-[12px] ms-[10px] -mt-[10px] w-[200px] absolute top-[100%] z-[500] start-0 hidden group-hover:block">
114+
<div className="text-[12px] -mt-[10px] w-[200px] absolute bottom-[100%] z-[500] start-0 hidden group-hover:block">
107115
<ul className="cursor-pointer rounded-[4px] border border-dashed mt-[3px] p-[5px] border-newBgLineColor bg-newColColor">
108116
{list.map((p) => (
109117
<li onClick={generateImage(p)} key={p} className="hover:bg-sixth">

apps/frontend/src/components/launches/ai.video.tsx

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export const Modal: FC<{
4444
setLocked(true);
4545

4646
const customParams = form.getValues();
47-
if (!await form.trigger()) {
47+
if (!(await form.trigger())) {
4848
toaster.show('Please fill all required fields', 'warning');
49-
return ;
49+
return;
5050
}
5151
try {
5252
const image = await fetch(`/media/generate-video`, {
@@ -199,7 +199,7 @@ export const AiVideo: FC<{
199199
/>
200200
)}
201201
<div className="relative group">
202-
<Button
202+
<div
203203
{...(value.length < 30
204204
? {
205205
'data-tooltip-id': 'tooltip',
@@ -208,8 +208,8 @@ export const AiVideo: FC<{
208208
}
209209
: {})}
210210
className={clsx(
211-
'relative ms-[10px] rounded-[4px] gap-[8px] !text-primary justify-center items-center flex border border-dashed border-newBgLineColor bg-newColColor',
212-
value.length < 30 && 'opacity-25'
211+
'cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]',
212+
value.length < 30 && 'opacity-50'
213213
)}
214214
>
215215
{loading && (
@@ -226,24 +226,32 @@ export const AiVideo: FC<{
226226
<div>
227227
<svg
228228
xmlns="http://www.w3.org/2000/svg"
229-
width="24"
230-
height="24"
231-
viewBox="0 0 24 24"
229+
width="16"
230+
height="16"
231+
viewBox="0 0 16 16"
232232
fill="none"
233233
>
234-
<path
235-
d="M19.5 3H7.5C7.10218 3 6.72064 3.15804 6.43934 3.43934C6.15804 3.72064 6 4.10218 6 4.5V6H4.5C4.10218 6 3.72064 6.15804 3.43934 6.43934C3.15804 6.72064 3 7.10218 3 7.5V19.5C3 19.8978 3.15804 20.2794 3.43934 20.5607C3.72064 20.842 4.10218 21 4.5 21H16.5C16.8978 21 17.2794 20.842 17.5607 20.5607C17.842 20.2794 18 19.8978 18 19.5V18H19.5C19.8978 18 20.2794 17.842 20.5607 17.5607C20.842 17.2794 21 16.8978 21 16.5V4.5C21 4.10218 20.842 3.72064 20.5607 3.43934C20.2794 3.15804 19.8978 3 19.5 3ZM7.5 4.5H19.5V11.0044L17.9344 9.43875C17.6531 9.15766 17.2717 8.99976 16.8741 8.99976C16.4764 8.99976 16.095 9.15766 15.8137 9.43875L8.75344 16.5H7.5V4.5ZM16.5 19.5H4.5V7.5H6V16.5C6 16.8978 6.15804 17.2794 6.43934 17.5607C6.72064 17.842 7.10218 18 7.5 18H16.5V19.5ZM19.5 16.5H10.875L16.875 10.5L19.5 13.125V16.5ZM11.25 10.5C11.695 10.5 12.13 10.368 12.5 10.1208C12.87 9.87357 13.1584 9.52217 13.3287 9.11104C13.499 8.6999 13.5436 8.2475 13.4568 7.81105C13.37 7.37459 13.1557 6.97368 12.841 6.65901C12.5263 6.34434 12.1254 6.13005 11.689 6.04323C11.2525 5.95642 10.8001 6.00097 10.389 6.17127C9.97783 6.34157 9.62643 6.62996 9.37919 6.99997C9.13196 7.36998 9 7.80499 9 8.25C9 8.84674 9.23705 9.41903 9.65901 9.84099C10.081 10.2629 10.6533 10.5 11.25 10.5ZM11.25 7.5C11.3983 7.5 11.5433 7.54399 11.6667 7.6264C11.79 7.70881 11.8861 7.82594 11.9429 7.96299C11.9997 8.10003 12.0145 8.25083 11.9856 8.39632C11.9566 8.5418 11.8852 8.67544 11.7803 8.78033C11.6754 8.88522 11.5418 8.95665 11.3963 8.98559C11.2508 9.01453 11.1 8.99968 10.963 8.94291C10.8259 8.88614 10.7088 8.79001 10.6264 8.66668C10.544 8.54334 10.5 8.39834 10.5 8.25C10.5 8.05109 10.579 7.86032 10.7197 7.71967C10.8603 7.57902 11.0511 7.5 11.25 7.5Z"
236-
fill="currentColor"
237-
/>
234+
<g clip-path="url(#clip0_2352_53058)">
235+
<path
236+
d="M8.06916 14.1663V2.04134M4.97208 14.1663V11.1351M4.97208 5.07259V2.04134M11.1662 14.1663V11.1351M9.09973 2.02152L4.8482 2.04134C3.80748 2.04134 3.28712 2.04134 2.88962 2.23957C2.53997 2.41394 2.25569 2.69218 2.07754 3.0344C1.875 3.42345 1.875 3.93275 1.875 4.95134L1.875 11.2563C1.875 12.2749 1.875 12.7842 2.07754 13.1733C2.25569 13.5155 2.53997 13.7937 2.88962 13.9681C3.28712 14.1663 3.80748 14.1663 4.8482 14.1663H11.2901C12.3308 14.1663 12.8512 14.1663 13.2487 13.9681C13.5984 13.7937 13.8826 13.5155 14.0608 13.1733C14.2633 12.7842 14.2633 12.2749 14.2633 11.2563V7.61426M1.875 5.07259L9.09973 5.06116M1.875 11.1351H14.2633M12.8141 1.20801L12.3949 2.02152C12.253 2.29684 12.1821 2.4345 12.0873 2.55379C12.0032 2.65965 11.9054 2.75455 11.7963 2.83614C11.6734 2.92809 11.5315 2.99692 11.2478 3.13458L10.4094 3.54134L11.2478 3.9481C11.5315 4.08576 11.6734 4.15459 11.7963 4.24654C11.9054 4.32814 12.0032 4.42303 12.0873 4.52889C12.1821 4.64818 12.253 4.78584 12.3949 5.06116L12.8141 5.87467L13.2333 5.06116C13.3751 4.78584 13.4461 4.64818 13.5408 4.52889C13.6249 4.42303 13.7227 4.32814 13.8318 4.24654C13.9548 4.15459 14.0966 4.08576 14.3804 3.9481L15.2188 3.54134L14.3804 3.13458C14.0966 2.99692 13.9548 2.92809 13.8318 2.83614C13.7227 2.75455 13.6249 2.65965 13.5408 2.55379C13.4461 2.4345 13.3751 2.29684 13.2333 2.02152L12.8141 1.20801Z"
237+
stroke="currentColor"
238+
strokeWidth="1.2"
239+
strokeLinecap="round"
240+
strokeLinejoin="round"
241+
/>
242+
</g>
243+
<defs>
244+
<clipPath id="clip0_2352_53058">
245+
<rect width="16" height="16" fill="currentColor" />
246+
</clipPath>
247+
</defs>
238248
</svg>
239249
</div>
240-
<div className="text-[12px] font-[500] !text-current">
241-
{t('ai', 'AI')} Video
242-
</div>
250+
<div className="text-[10px] font-[600] iconBreak:hidden block">{t('ai', 'AI')} Video</div>
243251
</div>
244-
</Button>
252+
</div>
245253
{value.length >= 30 && !loading && (
246-
<div className="text-[12px] ms-[10px] -mt-[10px] w-[200px] absolute top-[100%] z-[500] start-0 hidden group-hover:block">
254+
<div className="text-[12px] -mt-[10px] w-[200px] absolute bottom-[100%] z-[500] start-0 hidden group-hover:block">
247255
<ul className="cursor-pointer rounded-[4px] border border-dashed border-newBgLineColor bg-newColColor mt-[3px] p-[5px]">
248256
{data.map((p: any) => (
249257
<li

apps/frontend/src/components/launches/calendar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ export const CalendarColumn: FC<{
471471
closeOnEscape: false,
472472
withCloseButton: false,
473473
askClose: true,
474+
fullScreen: true,
474475
classNames: {
475476
modal: 'w-[100%] max-w-[1400px] text-textColor',
476477
},
@@ -551,9 +552,10 @@ export const CalendarColumn: FC<{
551552
closeOnEscape: false,
552553
withCloseButton: false,
553554
removeLayout: true,
555+
fullScreen: true,
554556
askClose: true,
555557
classNames: {
556-
modal: 'w-[100%] max-w-[1400px] text-textColor',
558+
modal: 'fixed left-0 top-0 w-full h-full',
557559
},
558560
id: 'add-edit-modal',
559561
children: (

apps/frontend/src/components/launches/general.preview.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const GeneralPreviewComponent: FC<{
4949
});
5050

5151
return (
52-
<div className={clsx('w-full md:w-[555px] px-[16px]')}>
52+
<div className={clsx('w-full md:w-[555px]')}>
5353
<div className="w-full h-full relative flex flex-col">
5454
{renderContent.map((value, index) => (
5555
<div

apps/frontend/src/components/launches/helpers/date.picker.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,34 @@ export const DatePicker: FC<{
3434
);
3535
return (
3636
<div
37-
className="flex gap-[8px] items-center relative px-[16px] select-none"
37+
className="px-[16px] border border-newTextColor/10 rounded-[8px] justify-center flex gap-[8px] items-center relative h-[44px] text-[15px] font-[600] ml-[7px] select-none flex-1"
3838
onClick={changeShow}
3939
ref={ref}
4040
>
41-
<div className="cursor-pointer">
42-
{date.format(isUSCitizen() ? 'MM/DD/YYYY hh:mm A' : 'DD/MM/YYYY HH:mm')}
43-
</div>
4441
<div className="cursor-pointer">
4542
<svg
4643
xmlns="http://www.w3.org/2000/svg"
47-
width="20"
48-
height="21"
49-
viewBox="0 0 20 21"
44+
width="17"
45+
height="19"
46+
viewBox="0 0 17 19"
5047
fill="none"
5148
>
5249
<path
53-
d="M16.25 3H14.375V2.375C14.375 2.20924 14.3092 2.05027 14.1919 1.93306C14.0747 1.81585 13.9158 1.75 13.75 1.75C13.5842 1.75 13.4253 1.81585 13.3081 1.93306C13.1908 2.05027 13.125 2.20924 13.125 2.375V3H6.875V2.375C6.875 2.20924 6.80915 2.05027 6.69194 1.93306C6.57473 1.81585 6.41576 1.75 6.25 1.75C6.08424 1.75 5.92527 1.81585 5.80806 1.93306C5.69085 2.05027 5.625 2.20924 5.625 2.375V3H3.75C3.41848 3 3.10054 3.1317 2.86612 3.36612C2.6317 3.60054 2.5 3.91848 2.5 4.25V16.75C2.5 17.0815 2.6317 17.3995 2.86612 17.6339C3.10054 17.8683 3.41848 18 3.75 18H16.25C16.5815 18 16.8995 17.8683 17.1339 17.6339C17.3683 17.3995 17.5 17.0815 17.5 16.75V4.25C17.5 3.91848 17.3683 3.60054 17.1339 3.36612C16.8995 3.1317 16.5815 3 16.25 3ZM16.25 6.75H3.75V4.25H5.625V4.875C5.625 5.04076 5.69085 5.19973 5.80806 5.31694C5.92527 5.43415 6.08424 5.5 6.25 5.5C6.41576 5.5 6.57473 5.43415 6.69194 5.31694C6.80915 5.19973 6.875 5.04076 6.875 4.875V4.25H13.125V4.875C13.125 5.04076 13.1908 5.19973 13.3081 5.31694C13.4253 5.43415 13.5842 5.5 13.75 5.5C13.9158 5.5 14.0747 5.43415 14.1919 5.31694C14.3092 5.19973 14.375 5.04076 14.375 4.875V4.25H16.25V6.75Z"
54-
fill="#B69DEC"
50+
d="M15.75 7.41667H0.75M11.5833 0.75V4.08333M4.91667 0.75V4.08333M4.75 17.4167H11.75C13.1501 17.4167 13.8502 17.4167 14.385 17.1442C14.8554 16.9045 15.2378 16.522 15.4775 16.0516C15.75 15.5169 15.75 14.8168 15.75 13.4167V6.41667C15.75 5.01654 15.75 4.31647 15.4775 3.78169C15.2378 3.31129 14.8554 2.92883 14.385 2.68915C13.8502 2.41667 13.1501 2.41667 11.75 2.41667H4.75C3.34987 2.41667 2.6498 2.41667 2.11502 2.68915C1.64462 2.92883 1.26217 3.31129 1.02248 3.78169C0.75 4.31647 0.75 5.01654 0.75 6.41667V13.4167C0.75 14.8168 0.75 15.5169 1.02248 16.0516C1.26217 16.522 1.64462 16.9045 2.11502 17.1442C2.6498 17.4167 3.34987 17.4167 4.75 17.4167Z"
51+
stroke="currentColor"
52+
strokeWidth="1.5"
53+
strokeLinecap="round"
54+
strokeLinejoin="round"
5555
/>
5656
</svg>
5757
</div>
58+
<div className="cursor-pointer">
59+
{date.format(isUSCitizen() ? 'MM/DD/YYYY hh:mm A' : 'DD/MM/YYYY HH:mm')}
60+
</div>
5861
{open && (
5962
<div
6063
onClick={(e) => e.stopPropagation()}
61-
className="animate-normalFadeDown absolute top-[100%] mt-[16px] end-0 bg-sixth border border-tableBorder text-textColor rounded-[16px] z-[300] p-[16px] flex flex-col"
64+
className="animate-fadeIn absolute bottom-[100%] mb-[16px] start-[50%] -translate-x-[50%] bg-sixth border border-tableBorder text-textColor rounded-[16px] z-[300] p-[16px] flex flex-col"
6265
>
6366
<Calendar
6467
onChange={changeDate('date')}
@@ -92,7 +95,7 @@ export const DatePicker: FC<{
9295
defaultValue={date.toDate()}
9396
/>
9497
<Button className="mt-[12px]" onClick={changeShow}>
95-
{t('save', 'Save')}
98+
{t('close', 'Close')}
9699
</Button>
97100
</div>
98101
)}

0 commit comments

Comments
 (0)