diff --git a/assets/lock.svg b/assets/lock.svg new file mode 100644 index 00000000..c13fb7c7 --- /dev/null +++ b/assets/lock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/user.svg b/assets/user.svg index 62df2c42..133b1bc1 100644 --- a/assets/user.svg +++ b/assets/user.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/components/common/DateFilter.js b/components/common/DateFilter.js index e48a7925..3c0431c4 100644 --- a/components/common/DateFilter.js +++ b/components/common/DateFilter.js @@ -1,5 +1,5 @@ import Calendar from 'assets/calendar-alt.svg'; -import DatePickerForm from 'components/forms/DatePickerForm'; +import DatePickerForm from 'components/metrics/DatePickerForm'; import { endOfYear, isSameDay } from 'date-fns'; import useLocale from 'hooks/useLocale'; import { dateFormat } from 'lib/date'; diff --git a/components/common/EventDataButton.js b/components/common/EventDataButton.js index 66f06871..683bcf20 100644 --- a/components/common/EventDataButton.js +++ b/components/common/EventDataButton.js @@ -1,5 +1,5 @@ import List from 'assets/list-ul.svg'; -import EventDataForm from 'components/forms/EventDataForm'; +import EventDataForm from 'components/metrics/EventDataForm'; import PropTypes from 'prop-types'; import { useState } from 'react'; import { Button, Icon, Modal } from 'react-basics'; diff --git a/components/common/HamburgerButton.js b/components/common/HamburgerButton.js index 67a1c83a..cb362297 100644 --- a/components/common/HamburgerButton.js +++ b/components/common/HamburgerButton.js @@ -12,7 +12,10 @@ const menuItems = [ value: '/dashboard', }, { label: , value: '/realtime' }, - { label: , value: '/settings' }, + { + label: , + value: '/settings', + }, { label: , value: '/settings/profile', diff --git a/components/forms/Form.module.css b/components/forms/Form.module.css deleted file mode 100644 index 9185da43..00000000 --- a/components/forms/Form.module.css +++ /dev/null @@ -1,63 +0,0 @@ -.form { - display: flex; - flex-direction: column; - gap: 30px; - width: 300px; - margin: 0 auto; -} - -.header { - font-size: 24px; - font-weight: 700; - text-align: center; - margin: 30px auto; -} - -.info { - text-align: center; - padding: 30px 0; -} - -.footer { - display: flex; - flex-direction: column; - gap: 20px; - font-size: 14px; - text-align: center; - margin: 30px auto; -} - -.footer a { - font-weight: 600; -} - -.buttons { - justify-content: center; -} - -.button { - flex: 1; - justify-content: center; -} - -.error { - width: 600px; - margin: 0 auto 30px; - background: var(--base50); - padding: 16px; - color: var(--red400); - border: 1px solid var(--red400); - border-radius: 5px; - text-align: center; -} - -.success { - width: 600px; - margin: 60px auto; - background: var(--base50); - padding: 16px; - color: var(--green400); - border: 1px solid var(--green400); - border-radius: 5px; - text-align: center; -} diff --git a/components/forms/TrackingCodeForm.js b/components/forms/TrackingCodeForm.js deleted file mode 100644 index 191248f5..00000000 --- a/components/forms/TrackingCodeForm.js +++ /dev/null @@ -1,23 +0,0 @@ -import useConfig from 'hooks/useConfig'; -import { useRef } from 'react'; -import { Form, FormRow, TextArea } from 'react-basics'; - -export default function TrackingCodeForm({ websiteId }) { - const ref = useRef(null); - const { trackerScriptName } = useConfig(); - const code = ``; - - return ( - <> -
- -

- To track stats for this website, place the following code in the{' '} - <head> section of your HTML. -

-