@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/components.js
CHANGED
|
@@ -4875,7 +4875,7 @@ var ProfileSpinner = styled.div`
|
|
|
4875
4875
|
}
|
|
4876
4876
|
`;
|
|
4877
4877
|
var READ_ONLY_FIELDS = ["id", "email", "avatar_url", "created_at", "updated_at"];
|
|
4878
|
-
var HIDDEN_FIELDS = ["id"];
|
|
4878
|
+
var HIDDEN_FIELDS = ["id", "avatar_url"];
|
|
4879
4879
|
function formatFieldLabel(key) {
|
|
4880
4880
|
return key.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase();
|
|
4881
4881
|
}
|
|
@@ -4887,9 +4887,7 @@ function UserProfileModal({ onClose, onError }) {
|
|
|
4887
4887
|
const [formData, setFormData] = useState({});
|
|
4888
4888
|
useEffect(() => {
|
|
4889
4889
|
if (user) {
|
|
4890
|
-
const initialData = {
|
|
4891
|
-
name: user.profile?.name || ""
|
|
4892
|
-
};
|
|
4890
|
+
const initialData = {};
|
|
4893
4891
|
if (user.profile) {
|
|
4894
4892
|
Object.entries(user.profile).forEach(([key, value]) => {
|
|
4895
4893
|
if (!HIDDEN_FIELDS.includes(key) && typeof value === "string") {
|