replaced window.location with NEXT_PUBLIC_APP_URL (#769)

* replaced window.location with process.env.NEXT_PUBLIC_APP_URL, removed empty classNames

* wip
This commit is contained in:
Peer Richelsen authored and GitHub committed 2021-09-24 09:03:28 -06:00
1 parent f709972f86
commit a8ec6e7060
9 files changed
+29 -18

No files matched your search

+1 -1
View File
@@ -243,7 +243,7 @@ const SchedulerForm = ({ schedule = DEFAULT_SCHEDULE, onSubmit }: Props) => {
{timeOptions("end")}
</select>
</div>
<div className="">
<div>
<DeleteAction range={range} />
</div>
</div>
+1 -1
View File
@@ -101,7 +101,7 @@ export const Scheduler = ({
<div>
<div className="flex">
<div className="w-full">
<div className="">
<div>
<label htmlFor="timeZone" className="block text-sm font-medium text-gray-700">
Timezone
</label>
+1 -1
View File
@@ -8,7 +8,7 @@ const UsernameInput = React.forwardRef((props, ref) => (
</label>
<div className="flex mt-1 rounded-md shadow-sm">
<span className="inline-flex items-center px-3 text-gray-500 border border-r-0 border-gray-300 rounded-l-sm bg-gray-50 sm:text-sm">
{typeof window !== "undefined" && window.location.hostname}/{props.label && "team/"}
{process.env.NEXT_PUBLIC_APP_URL}/{props.label && "team/"}
</span>
<input
ref={ref}