Merge pull request #921 from OpenSignLabs/raktima-opensignlabs-patch-11

fix: webpack build error, restrict space in public username
This commit is contained in:
prafull-opensignlabs
2024-07-12 14:41:24 +05:30
committed by GitHub
4 changed files with 15 additions and 24 deletions
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -280,7 +280,8 @@ function UserProfile() {
};
//function to handle onchange username and restrict 6-characters username for free users
const handleOnchangeUserName = (e) => {
setPublicUserName(e.target.value);
const newValue = e.target.value.replace(/\s+/g, "");
setPublicUserName(newValue);
};
const handleOnchangeTagLine = (e) => {
@@ -1239,7 +1239,7 @@ const ReportTable = (props) => {
<div className="font-normal text-black">
<p className="text-lg">
{props.isPublic[item.objectId]
? `Are you sure you want to make this template public ?`
? `Are you sure you want to make this template public?`
: `Are you sure you want to make this template private? This will remove it from your public profile.`}
</p>
{props.isPublic[item.objectId] && (
@@ -1294,11 +1294,11 @@ const ReportTable = (props) => {
</p>
<div className=" flex items-center gap-3 mt-2 p-[2px] ">
<span className="font-bold">
Public URL :{" "}
Public URL :
</span>
<span
onClick={() => copytoProfileLink()}
className="underline underline-offset-2 cursor-pointer"
className="underline underline-offset-2 w-[150px] md:w-[350px] whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer"
>{`https://opensign.me/${publicUserName}`}</span>
</div>
</div>
+1 -1
View File
@@ -64,7 +64,7 @@ module.exports = {
: [])
],
optimization: {
minimize: isProduction,
minimize: isProduction ? true : false,
minimizer: [new TerserPlugin()]
},
devtool: isProduction ? "source-map" : "inline-source-map"