Update not bull button title (#407)

* Fix button behavior: Reverse logic for nullable/not nullable toggle

* fix: updated translation key to 'nullable' and refactored button title
This commit is contained in:
Pavan
2025-04-14 21:43:12 +05:30
committed by GitHub
parent b19b3bb949
commit 4de49cb3cc
3 changed files with 6 additions and 3 deletions

View File

@@ -134,9 +134,10 @@ export default function TableField({ data, tid, index }) {
</Col>
<Col span={3}>
<Button
type={data.notNull ? "primary" : "tertiary"}
title={t("not_null")}
theme={data.notNull ? "solid" : "light"}
type={data.notNull ? "tertiary" : "primary"}
title={t("nullable")}
theme={data.notNull ? "light" : "solid"}
onClick={() => {
setUndoStack((prev) => [
...prev,