From f350e8974e91f7cd68014d9b0984de462aaa4de5 Mon Sep 17 00:00:00 2001 From: Florian LEFEBVRE Date: Mon, 27 Sep 2021 18:05:58 +0200 Subject: [PATCH] apply review --- www/components/Nav/Annoucement.tsx | 2 +- www/data/Annoucement.json | 5 +++++ www/data/Annoucement.ts | 11 ----------- 3 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 www/data/Annoucement.json delete mode 100644 www/data/Annoucement.ts diff --git a/www/components/Nav/Annoucement.tsx b/www/components/Nav/Annoucement.tsx index b0b24201372..263b16fc396 100644 --- a/www/components/Nav/Annoucement.tsx +++ b/www/components/Nav/Annoucement.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { annoucement } from '~/data/Annoucement' +import annoucement from '~/data/Annoucement.json' const Annoucement = () => { if (!annoucement.show) return null diff --git a/www/data/Annoucement.json b/www/data/Annoucement.json new file mode 100644 index 00000000000..288f93ea887 --- /dev/null +++ b/www/data/Annoucement.json @@ -0,0 +1,5 @@ +{ + "show": true, + "text": "We just raised a $30 million Series A... Discover more about it here!", + "link": "https://techcrunch.com/2021/09/09/supabase-raises-30m-for-its-open-source-insta-backend/" +} diff --git a/www/data/Annoucement.ts b/www/data/Annoucement.ts deleted file mode 100644 index c4c61ec06ae..00000000000 --- a/www/data/Annoucement.ts +++ /dev/null @@ -1,11 +0,0 @@ -type Annoucement = { - show: boolean - text: string - link: string -} - -export const annoucement: Annoucement = { - show: true, - text: 'We just raised a $30 million Series A... Discover more about it here!', - link: 'https://techcrunch.com/2021/09/09/supabase-raises-30m-for-its-open-source-insta-backend/', -}