@insforge/react 1.0.5-dev.1 → 1.0.5-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs +2 -4
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +2 -4
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5466,7 +5466,7 @@ var ProfileSpinner = styled.div`
|
|
|
5466
5466
|
}
|
|
5467
5467
|
`;
|
|
5468
5468
|
var READ_ONLY_FIELDS = ["id", "email", "avatar_url", "created_at", "updated_at"];
|
|
5469
|
-
var HIDDEN_FIELDS = ["id"];
|
|
5469
|
+
var HIDDEN_FIELDS = ["id", "avatar_url"];
|
|
5470
5470
|
function formatFieldLabel(key) {
|
|
5471
5471
|
return key.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase();
|
|
5472
5472
|
}
|
|
@@ -5478,9 +5478,7 @@ function UserProfileModal({ onClose, onError }) {
|
|
|
5478
5478
|
const [formData, setFormData] = React2.useState({});
|
|
5479
5479
|
React2.useEffect(() => {
|
|
5480
5480
|
if (user) {
|
|
5481
|
-
const initialData = {
|
|
5482
|
-
name: user.profile?.name || ""
|
|
5483
|
-
};
|
|
5481
|
+
const initialData = {};
|
|
5484
5482
|
if (user.profile) {
|
|
5485
5483
|
Object.entries(user.profile).forEach(([key, value]) => {
|
|
5486
5484
|
if (!HIDDEN_FIELDS.includes(key) && typeof value === "string") {
|