refactor(FE-438): Refactor ConfirmationModal icon and update usages

This commit is contained in:
rstubryan
2025-12-28 17:46:27 +07:00
parent 8224dbf8ec
commit 2d0c8dbd3f
2 changed files with 73 additions and 86 deletions
@@ -467,7 +467,6 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
ref={successModal.ref}
type='success'
iconPosition='left'
iconSize={32}
text='Data Berhasil Ditambahkan'
subtitleText='Data uniformity telah berhasil disimpan.'
closeOnBackdrop={false}
@@ -539,7 +538,6 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
ref={singleDeleteModal.ref}
type='error'
iconPosition='left'
iconSize={32}
text={`Delete This Data?`}
subtitleText='Are you sure you want to delete this data?'
secondaryButton={{
@@ -547,7 +545,7 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
}}
primaryButton={{
text: 'Ya',
color: 'error',
color: 'primary',
isLoading: isDeleteLoading,
onClick: singleDeleteHandler,
}}
@@ -614,7 +612,6 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
ref={bulkDeleteModal.ref}
type='error'
iconPosition='left'
iconSize={32}
text={`Delete This Data?`}
subtitleText={`Are you sure you want to delete this data? (${selectedRowIds.length} data)`}
secondaryButton={{
@@ -622,7 +619,7 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
}}
primaryButton={{
text: 'Ya',
color: 'error',
color: 'primary',
isLoading: isBulkActionLoading,
onClick: bulkDeleteHandler,
}}
@@ -689,7 +686,6 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
ref={singleApproveModal.ref}
type='success'
iconPosition='left'
iconSize={32}
text='Approve This Submission?'
subtitleText='Are you sure you want to approve this submission?'
secondaryButton={{
@@ -697,7 +693,7 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
}}
primaryButton={{
text: 'Ya',
color: 'success',
color: 'primary',
isLoading: isDeleteLoading,
onClick: singleApproveHandler,
}}
@@ -766,7 +762,6 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
ref={bulkApproveModal.ref}
type='success'
iconPosition='left'
iconSize={32}
text={`Approve This Submission?`}
subtitleText={`Are you sure you want to approve this submission? (${selectedRowIds.length} data)`}
secondaryButton={{
@@ -774,7 +769,7 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
}}
primaryButton={{
text: 'Ya',
color: 'success',
color: 'primary',
isLoading: isBulkActionLoading,
onClick: bulkApproveHandler,
}}
@@ -814,7 +809,6 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
ref={singleRejectModal.ref}
type='error'
iconPosition='left'
iconSize={32}
text='Reject This Submission?'
subtitleText='Are you sure you want to reject this submission?'
secondaryButton={{
@@ -822,7 +816,7 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
}}
primaryButton={{
text: 'Ya',
color: 'error',
color: 'primary',
isLoading: isDeleteLoading,
onClick: singleRejectHandler,
}}
@@ -891,7 +885,6 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
ref={bulkRejectModal.ref}
type='error'
iconPosition='left'
iconSize={32}
text={`Apakah anda yakin ingin menolak ${selectedRowIds.length} data Uniformity yang dipilih?`}
secondaryButton={{
text: 'Tidak',