@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.js
CHANGED
|
@@ -5445,7 +5445,7 @@ var ProfileSpinner = styled.div`
|
|
|
5445
5445
|
}
|
|
5446
5446
|
`;
|
|
5447
5447
|
var READ_ONLY_FIELDS = ["id", "email", "avatar_url", "created_at", "updated_at"];
|
|
5448
|
-
var HIDDEN_FIELDS = ["id"];
|
|
5448
|
+
var HIDDEN_FIELDS = ["id", "avatar_url"];
|
|
5449
5449
|
function formatFieldLabel(key) {
|
|
5450
5450
|
return key.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase();
|
|
5451
5451
|
}
|
|
@@ -5457,9 +5457,7 @@ function UserProfileModal({ onClose, onError }) {
|
|
|
5457
5457
|
const [formData, setFormData] = useState({});
|
|
5458
5458
|
useEffect(() => {
|
|
5459
5459
|
if (user) {
|
|
5460
|
-
const initialData = {
|
|
5461
|
-
name: user.profile?.name || ""
|
|
5462
|
-
};
|
|
5460
|
+
const initialData = {};
|
|
5463
5461
|
if (user.profile) {
|
|
5464
5462
|
Object.entries(user.profile).forEach(([key, value]) => {
|
|
5465
5463
|
if (!HIDDEN_FIELDS.includes(key) && typeof value === "string") {
|