diff options
author | 2024-04-24 12:12:47 +0200 | |
---|---|---|
committer | 2024-04-24 11:12:47 +0100 | |
commit | 7a1e6394831fb07e303c5ed0900dfe1ea4820de5 (patch) | |
tree | bcd526463b19a85fbe821dcad2276da401daec18 /web/source/settings/components/back-button.jsx | |
parent | [chore]: Bump codeberg.org/gruf/go-mutexes from 1.4.0 to 1.4.1 (#2860) (diff) | |
download | gotosocial-7a1e6394831fb07e303c5ed0900dfe1ea4820de5.tar.xz |
[chore] Refactor settings panel routing (and other fixes) (#2864)
Diffstat (limited to 'web/source/settings/components/back-button.jsx')
-rw-r--r-- | web/source/settings/components/back-button.jsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/web/source/settings/components/back-button.jsx b/web/source/settings/components/back-button.jsx index 05306e2ea..bf9038b2b 100644 --- a/web/source/settings/components/back-button.jsx +++ b/web/source/settings/components/back-button.jsx @@ -17,13 +17,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -const React = require("react"); -const { Link } = require("wouter"); +import React from "react"; +import { Link } from "wouter"; -module.exports = function BackButton({ to }) { +export default function BackButton({ to }) { return ( - <Link to={to}> - <a className="button">< back</a> - </Link> + <Link className="button" to={to}>< back</Link> ); -};
\ No newline at end of file +} |