Fixing login footer and non-free share removal to work on latest Element Web
This commit is contained in:
@@ -23,29 +23,13 @@ error() {
|
||||
}
|
||||
|
||||
patch_content=$(cat << EOF
|
||||
--- a/components.json
|
||||
+++ b/components.json
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
- "src/components/views/auth/AuthFooter.tsx": "src/components/views/auth/VectorAuthFooter.tsx",
|
||||
"src/components/views/auth/AuthHeaderLogo.tsx": "src/components/views/auth/VectorAuthHeaderLogo.tsx",
|
||||
"src/components/views/auth/AuthPage.tsx": "src/components/views/auth/VectorAuthPage.tsx"
|
||||
}
|
||||
--- a/src/components/views/auth/VectorAuthPage.tsx
|
||||
+++ b/src/components/views/auth/VectorAuthPage.tsx
|
||||
@@ -8,7 +8,6 @@ Please see LICENSE files in the repository root for full details.
|
||||
import * as React from "react";
|
||||
|
||||
import SdkConfig from "../../../SdkConfig";
|
||||
-import VectorAuthFooter from "./VectorAuthFooter";
|
||||
|
||||
export default class VectorAuthPage extends React.PureComponent<React.PropsWithChildren> {
|
||||
private static welcomeBackgroundUrl?: string;
|
||||
@@ -68,7 +67,6 @@ export default class VectorAuthPage extends React.PureComponent<React.PropsWithC
|
||||
--- a/src/components/views/auth/AuthPage.tsx
|
||||
+++ b/src/components/views/auth/AuthPage.tsx
|
||||
@@ -70,7 +70,6 @@ export default class AuthPage extends React.PureComponent<React.PropsWithChildre
|
||||
{this.props.children}
|
||||
</div>
|
||||
</div>
|
||||
- <VectorAuthFooter />
|
||||
- <AuthFooter />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -53,6 +37,3 @@ EOF
|
||||
)
|
||||
|
||||
(cd "${1}" && echo "${patch_content}" | patch -p1) || error
|
||||
rm -f "${1}"/src/components/views/auth/VectorAuthFooter.tsx \
|
||||
"${1}"/test/unit-tests/components/views/auth/VectorAuthFooter-test.tsx \
|
||||
"${1}"/test/unit-tests/components/views/auth/__snapshots__/VectorAuthFooter-test.tsx.snap
|
||||
|
Reference in New Issue
Block a user