Terakhir Di Investasi Perbaikan Tampilannya
This commit is contained in:
@@ -113,8 +113,14 @@ export default function Vote_Create() {
|
||||
<TextInput
|
||||
styles={{
|
||||
label: {
|
||||
color: "white",
|
||||
color: MainColor.white,
|
||||
},
|
||||
input: {
|
||||
backgroundColor: MainColor.white,
|
||||
},
|
||||
required: {
|
||||
color: MainColor.red,
|
||||
}
|
||||
}}
|
||||
label="Judul"
|
||||
withAsterisk
|
||||
@@ -131,8 +137,14 @@ export default function Vote_Create() {
|
||||
<Textarea
|
||||
styles={{
|
||||
label: {
|
||||
color: "white",
|
||||
color: MainColor.white,
|
||||
},
|
||||
input: {
|
||||
backgroundColor: MainColor.white,
|
||||
},
|
||||
required: {
|
||||
color: MainColor.red,
|
||||
}
|
||||
}}
|
||||
label="Deskripsi"
|
||||
autosize
|
||||
@@ -157,8 +169,14 @@ export default function Vote_Create() {
|
||||
<DatePickerInput
|
||||
styles={{
|
||||
label: {
|
||||
color: "white",
|
||||
color: MainColor.white,
|
||||
},
|
||||
input: {
|
||||
backgroundColor: MainColor.white,
|
||||
},
|
||||
required: {
|
||||
color: MainColor.red,
|
||||
}
|
||||
}}
|
||||
label="Jangka Waktu"
|
||||
placeholder="Masukan jangka waktu voting"
|
||||
@@ -180,7 +198,7 @@ export default function Vote_Create() {
|
||||
|
||||
<Stack spacing={0}>
|
||||
<Center>
|
||||
<Text fw={"bold"} fz={"sm"} c={"white"}>
|
||||
<Text fw={"bold"} fz={"sm"} c={MainColor.white}>
|
||||
Daftar Pilihan
|
||||
</Text>
|
||||
</Center>
|
||||
@@ -192,8 +210,14 @@ export default function Vote_Create() {
|
||||
<TextInput
|
||||
styles={{
|
||||
label: {
|
||||
color: "white",
|
||||
color: MainColor.white,
|
||||
},
|
||||
input: {
|
||||
backgroundColor: MainColor.white,
|
||||
},
|
||||
required: {
|
||||
color: MainColor.red,
|
||||
}
|
||||
}}
|
||||
label={e.name}
|
||||
withAsterisk
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { RouterVote } from "@/app/lib/router_hipmi/router_vote";
|
||||
import { MainColor } from "@/app_modules/_global/color/color_pallet";
|
||||
import { AccentColor, MainColor } from "@/app_modules/_global/color/color_pallet";
|
||||
import ComponentGlobal_BoxInformation from "@/app_modules/_global/component/box_information";
|
||||
import { ComponentGlobal_NotifikasiBerhasil } from "@/app_modules/_global/notif_global/notifikasi_berhasil";
|
||||
import { ComponentGlobal_NotifikasiGagal } from "@/app_modules/_global/notif_global/notifikasi_gagal";
|
||||
@@ -124,8 +124,8 @@ function ButtonAction({
|
||||
<SimpleGrid cols={2}>
|
||||
<Button
|
||||
radius={"xl"}
|
||||
bg={MainColor.yellow}
|
||||
color="yellow"
|
||||
style={{ backgroundColor: AccentColor.yellow }}
|
||||
c={MainColor.darkblue}
|
||||
onClick={() => {
|
||||
setOpenModal1(true);
|
||||
}}
|
||||
@@ -134,7 +134,8 @@ function ButtonAction({
|
||||
</Button>
|
||||
<Button
|
||||
radius={"xl"}
|
||||
color="red"
|
||||
style={{ backgroundColor: MainColor.red }}
|
||||
c={AccentColor.white}
|
||||
onClick={() => {
|
||||
setOpenModal2(true);
|
||||
}}
|
||||
@@ -166,8 +167,8 @@ function ButtonAction({
|
||||
onClick={() => {
|
||||
onUpdate();
|
||||
}}
|
||||
color="yellow"
|
||||
bg={MainColor.yellow}
|
||||
c={MainColor.darkblue}
|
||||
style={{ backgroundColor: AccentColor.yellow }}
|
||||
>
|
||||
Ajukan
|
||||
</Button>
|
||||
@@ -181,6 +182,7 @@ function ButtonAction({
|
||||
close={() => setOpenModal2(false)}
|
||||
buttonKiri={
|
||||
<Button
|
||||
c={AccentColor.white}
|
||||
radius={"xl"}
|
||||
onClick={() => {
|
||||
setOpenModal2(false);
|
||||
|
||||
@@ -14,6 +14,7 @@ import { Vote_funEditStatusByStatusId } from "../../fun/edit/fun_edit_status_by_
|
||||
import { gs_vote_status } from "../../global_state";
|
||||
import { MODEL_VOTING } from "../../model/interface";
|
||||
import { RouterVote } from "@/app/lib/router_hipmi/router_vote";
|
||||
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||
|
||||
export default function Vote_DetailReject({
|
||||
dataVote,
|
||||
@@ -68,16 +69,18 @@ function ButtonAction({ voteId }: { voteId: string }) {
|
||||
<SimpleGrid cols={2}>
|
||||
<Button
|
||||
radius={"xl"}
|
||||
color="orange"
|
||||
style={{ backgroundColor: AccentColor.yellow, fontWeight:"bold" }}
|
||||
c={MainColor.darkblue}
|
||||
onClick={() => {
|
||||
setOpenModal1(true);
|
||||
setOpenModal1(true);
|
||||
}}
|
||||
>
|
||||
Edit Kembali
|
||||
</Button>{" "}
|
||||
<Button
|
||||
radius={"xl"}
|
||||
color="red"
|
||||
c={AccentColor.white}
|
||||
style={{ backgroundColor: MainColor.red, fontWeight:"bold" }}
|
||||
onClick={() => {
|
||||
setOpenModal2(true);
|
||||
}}
|
||||
@@ -93,6 +96,7 @@ function ButtonAction({ voteId }: { voteId: string }) {
|
||||
buttonKiri={
|
||||
<Button
|
||||
radius={"xl"}
|
||||
c={AccentColor.white}
|
||||
onClick={() => {
|
||||
setOpenModal1(false);
|
||||
}}
|
||||
@@ -105,10 +109,11 @@ function ButtonAction({ voteId }: { voteId: string }) {
|
||||
loaderPosition="center"
|
||||
loading={isLoading ? true : false}
|
||||
radius={"xl"}
|
||||
style={{ backgroundColor: AccentColor.yellow }}
|
||||
onClick={() => {
|
||||
onUpdate();
|
||||
}}
|
||||
color="orange"
|
||||
c={MainColor.darkblue}
|
||||
>
|
||||
Simpan
|
||||
</Button>
|
||||
|
||||
@@ -15,6 +15,7 @@ import { Vote_funEditStatusByStatusId } from "../../fun/edit/fun_edit_status_by_
|
||||
import { MODEL_VOTING } from "../../model/interface";
|
||||
import { voting_checkStatus } from "../../fun";
|
||||
import { ComponentGlobal_NotifikasiPeringatan } from "@/app_modules/_global/notif_global";
|
||||
import { AccentColor, MainColor } from "@/app_modules/_global/color";
|
||||
|
||||
export default function Vote_DetailReview({
|
||||
dataVote,
|
||||
@@ -90,7 +91,8 @@ function ButtonAction({
|
||||
<>
|
||||
<Button
|
||||
radius={"xl"}
|
||||
color="orange"
|
||||
style={{ backgroundColor: MainColor.orange }}
|
||||
c={MainColor.darkblue}
|
||||
onClick={() => {
|
||||
setOpenModal(true);
|
||||
}}
|
||||
@@ -103,16 +105,17 @@ function ButtonAction({
|
||||
opened={openModal}
|
||||
close={() => setOpenModal(false)}
|
||||
buttonKiri={
|
||||
<Button radius={"xl"} onClick={() => setOpenModal(false)}>
|
||||
<Button c={AccentColor.white} radius={"xl"} onClick={() => setOpenModal(false)}>
|
||||
Batal
|
||||
</Button>
|
||||
}
|
||||
buttonKanan={
|
||||
<Button
|
||||
loaderPosition="center"
|
||||
style={{ backgroundColor: AccentColor.yellow }}
|
||||
loading={isLoading ? true : false}
|
||||
radius={"xl"}
|
||||
color="green"
|
||||
c={MainColor.darkblue}
|
||||
onClick={() => {
|
||||
onUpdate();
|
||||
console.log(statusId);
|
||||
|
||||
@@ -57,7 +57,13 @@ export default function Vote_Edit({
|
||||
<TextInput
|
||||
styles={{
|
||||
label: {
|
||||
color: "white",
|
||||
color: MainColor.white,
|
||||
},
|
||||
input: {
|
||||
backgroundColor: MainColor.white,
|
||||
},
|
||||
required: {
|
||||
color: MainColor.red,
|
||||
},
|
||||
}}
|
||||
label="Judul"
|
||||
@@ -84,7 +90,13 @@ export default function Vote_Edit({
|
||||
<Textarea
|
||||
styles={{
|
||||
label: {
|
||||
color: "white",
|
||||
color: MainColor.white,
|
||||
},
|
||||
input: {
|
||||
backgroundColor: MainColor.white,
|
||||
},
|
||||
required: {
|
||||
color: MainColor.red,
|
||||
},
|
||||
}}
|
||||
label="Deskripsi"
|
||||
@@ -117,9 +129,15 @@ export default function Vote_Edit({
|
||||
|
||||
<DatePickerInput
|
||||
styles={{
|
||||
label: {
|
||||
color: "white",
|
||||
},
|
||||
label: {
|
||||
color: MainColor.white,
|
||||
},
|
||||
input: {
|
||||
backgroundColor: MainColor.white,
|
||||
},
|
||||
required: {
|
||||
color: MainColor.red,
|
||||
},
|
||||
}}
|
||||
label="Jangka Waktu"
|
||||
placeholder="Masukan jangka waktu voting"
|
||||
@@ -161,7 +179,13 @@ export default function Vote_Edit({
|
||||
<TextInput
|
||||
styles={{
|
||||
label: {
|
||||
color: "white",
|
||||
color: MainColor.white,
|
||||
},
|
||||
input: {
|
||||
backgroundColor: MainColor.white,
|
||||
},
|
||||
required: {
|
||||
color: MainColor.red,
|
||||
},
|
||||
}}
|
||||
label={"Nama Pilihan"}
|
||||
|
||||
@@ -64,15 +64,16 @@ export default function Vote_Status() {
|
||||
key={e.id}
|
||||
value={e.id}
|
||||
fw={"bold"}
|
||||
c={"black"}
|
||||
|
||||
style={{
|
||||
transition: "0.5s",
|
||||
color: params.id === e.id ? MainColor.darkblue : MainColor.black,
|
||||
backgroundColor:
|
||||
params.id === e.id ? MainColor.yellow : MainColor.white,
|
||||
border:
|
||||
params.id === e.id
|
||||
? `1px solid ${AccentColor.yellow}`
|
||||
: `1px solid white`,
|
||||
: `1px solid ${MainColor.white}`,
|
||||
}}
|
||||
>
|
||||
{e.name}
|
||||
|
||||
Reference in New Issue
Block a user